Versions in this module Expand all Collapse all v4 v4.14.2 Mar 31, 2021 Changes in this version + var DefaultMigrationsTable = "schema_migrations" + var ErrAppendPEM = fmt.Errorf("failed to append PEM") + var ErrDatabaseDirty = fmt.Errorf("database is dirty") + var ErrNilConfig = fmt.Errorf("no config") + var ErrNoDatabaseName = fmt.Errorf("no database name") + var ErrTLSCertKeyConfig = fmt.Errorf(...) + func WithInstance(instance *sql.DB, config *Config) (database.Driver, error) + type Config struct + DatabaseName string + MigrationsTable string + NoLock bool + type Mysql struct + func (m *Mysql) Close() error + func (m *Mysql) Drop() (err error) + func (m *Mysql) Lock() error + func (m *Mysql) Open(url string) (database.Driver, error) + func (m *Mysql) Run(migration io.Reader) error + func (m *Mysql) SetVersion(version int, dirty bool) error + func (m *Mysql) Unlock() error + func (m *Mysql) Version() (version int, dirty bool, err error) Other modules containing this package github.com/brandonmartin/migrate