mysql

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMySQL

func NewMySQL(dsn string) (m.Driver, error)

NewMySQL creates a new MySQL driver. The DSN is documented here: https://github.com/go-sql-driver/mysql#dsn-data-source-name

Types

type MySQL

type MySQL struct {
	// contains filtered or unexported fields
}

func (*MySQL) Close

func (driver *MySQL) Close() error

Close closes the connection to the MySQL server.

func (*MySQL) Migrate

func (driver *MySQL) Migrate(migration *m.PlannedMigration) error

Migrate runs a migration.

func (*MySQL) Versions

func (driver *MySQL) Versions() ([]string, error)

Versions lists all the applied versions.

Jump to

Keyboard shortcuts

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