Skip to content

go-tamate/tamate-mysql

Repository files navigation

tamate-mysql

LICENSE GoDoc Go Report Card

CircleCI

A MySQL-Driver for go-tamate/tamate package



Features

  • Export schema's ddl from datasource
  • Export row's sql from datasource
  • Supports alter of schema

Requirements

  • Go 1.12 or higher. We aim to support the 3 latest versions of Go.

Installation

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.

Usage

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.

DSN (Data Source Name)

Please refer to the usage of go-sql-driver

Testing / Development

Please execute the following command at the root of the project

docker-compose up -d
go test ./...
docker-compose down

License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages