mymysql: github.com/ziutek/mymysql Index | Files | Directories

package mymysql

import "github.com/ziutek/mymysql"

Package mymysql provides MySQL client API and database/sql driver.

It can be used as a library or as a database/sql driver.

Using as a library

Import native or thrsafe engine. Optionally import autorc for autoreconnect connections.

import (
	"github.com/ziutek/mymysql/mysql"
	_ "github.com/ziutek/mymysql/thrsafe" // OR native
	// _ "github.com/ziutek/mymysql/native"
	"github.com/ziutek/mymysql/autorc" // for autoreconnect
)

Using as a Go sql driver

Import Go standard sql package and godrv driver.

import (
	"database/sql"
	_ "github.com/ziutek/mymysql/godrv"
)

Index

Package Files

doc.go

Directories

PathSynopsis
autorcPackage autorc provides an auto reconnect interface for MyMySQL.
godrvPackage godrv implements database/sql MySQL driver.
mysqlPackage mysql is a MySQL Client API written entirely in Go without any external dependences.
nativePackage native is a thread unsafe engine for MyMySQL.
thrsafePackage thrsafe is a thread safe engine for MyMySQL.

Updated 2019-03-13. Refresh now. Tools for package owners.