mysql-stack

module
v0.0.0-...-3023ae2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: GPL-3.0

README

Running Tests

$ mkdir src
$ export GOPATH=`pwd`
$ go get -u github.com/gocuntian/mysql-stack/driver
$ cd src/github.com/gocuntian/mysql-stack/
$ 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]]]

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.

Jump to

Keyboard shortcuts

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