Skip to content
MySQL protocol library implementing in Go (golang)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
driver *: add statement prepare support and others May 8, 2019
examples
packet *: add statement prepare support and others May 8, 2019
proto *: add statement prepare support and others May 8, 2019
sqldb *: add statement prepare support and others May 8, 2019
sqlparser *: add statement prepare support and others May 8, 2019
xlog *: add statement prepare support and others May 8, 2019
.gitignore [parser][sqldb] add sqlerror and supports more sql syntax Mar 6, 2017
.travis.yml travis: update go version Nov 17, 2017
LICENSE *: change the organization name from XeLabs to xelabs Feb 27, 2018
README.md *: fixup EOF package and add version to greeting Mar 19, 2019
makefile *: add statement prepare support and others May 8, 2019

README.md

Build Status Go Report Card codecov.io

go-mysqlstack

go-mysqlstack is an MySQL protocol library implementing in Go (golang).

Protocol is based on mysqlproto-go and go-sql-driver

Running Tests

$ mkdir src
$ export GOPATH=`pwd`
$ go get -u github.com/xelabs/go-mysqlstack/driver
$ cd src/github.com/xelabs/go-mysqlstack/
$ make test

Examples

  1. 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]
  1. 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]]]

Status

go-mysqlstack is production ready.

License

go-mysqlstack is released under the GPLv3. See LICENSE

You can’t perform that action at this time.