Versions in this module Expand all Collapse all v4 v4.16.3 Sep 26, 2023 Changes in this version + var DefaultLockTable = "schema_lock" + var DefaultMigrationsTable = "schema_migrations" + var ErrNilConfig = fmt.Errorf("no config") + var ErrNoDatabaseName = fmt.Errorf("no database name") + func WithInstance(instance *sql.DB, config *Config) (database.Driver, error) + type CockroachDb struct + func (c *CockroachDb) Close() error + func (c *CockroachDb) Drop() (err error) + func (c *CockroachDb) Lock() error + func (c *CockroachDb) Open(url string) (database.Driver, error) + func (c *CockroachDb) Run(migration io.Reader) error + func (c *CockroachDb) SetVersion(version int, dirty bool) error + func (c *CockroachDb) Unlock() error + func (c *CockroachDb) Version() (version int, dirty bool, err error) + type Config struct + DatabaseName string + ForceLock bool + LockTable string + MigrationsTable string Other modules containing this package github.com/startedio/migrate