A MySQL-Driver for go-tamate/tamate package
- Export schema's ddl from datasource
- Export row's sql from datasource
- Supports alter of schema
- Go 1.12 or higher. We aim to support the 3 latest versions of Go.
Simple install the package to your $GOPATH with the go tool from shell:
$ go get -u github.com/go-tamate/tamate-mysql
Make sure Git is installed on your machine and in your system's PATH
.
Tamate Driver is an implementation of tamate/driver
interface.
Use mysql
as driverName
and a valid DSN as dataSourceName
:
import "github.com/go-tamate/tamate"
import _ "github.com/go-sql-driver/mysql"
import _ "github.com/go-tamate/tamate-mysql"
ds, err := tamate.Open("mysql", "./")
Use this to Get
, Set
, GettingDiff
, etc.
Please refer to the usage of go-sql-driver
Please execute the following command at the root of the project
docker-compose up -d
go test ./...
docker-compose down
- MIT
- see LICENSE