go-mysqlstack is an MySQL protocol library implementing in Go (golang).
Protocol is based on mysqlproto-go and go-sql-driver
$ mkdir src
$ export GOPATH=`pwd`
$ go get -u github.com/xelabs/go-mysqlstack/driver
$ cd src/github.com/xelabs/go-mysqlstack/
$ make test
- examples/mysqld.go mocks a MySQL server by running:
$ go run example/mysqld.go
2018/01/26 16:02:02.304376 mysqld.go:52: [INFO] mysqld.server.start.address[:4407]
- examples/client.go mocks a client and query from the mock MySQL server:
$ go run example/client.go
2018/01/26 16:06:10.779340 client.go:32: [INFO] results:[[[10 nice name]]]
go-mysqlstack is production ready.
go-mysqlstack is released under the BSD-3-Clause License. See LICENSE