go-mysqlstack

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2021 License: BSD-3-Clause

README

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

Directories

Path Synopsis
depends/query
Package query is a generated protocol buffer package.
Package query is a generated protocol buffer package.
depends/sqltypes
Package sqltypes implements interfaces and types that represent SQL values.
Package sqltypes implements interfaces and types that represent SQL values.
visitorgen
Package visitorgen is responsible for taking the ast.go of Vitess and producing visitor infrastructure for it.
Package visitorgen is responsible for taking the ast.go of Vitess and producing visitor infrastructure for it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL