Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

xelabs/go-mysqlstack

Repository files navigation

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 BSD-3-Clause License. See LICENSE

About

MySQL protocol library implementing in Go (golang)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

AltStyle によって変換されたページ (->オリジナル) /