Versions in this module Expand all Collapse all v4 v4.15.10 Feb 27, 2022 Changes in this version + var DefaultMigrationsTable = "schema_migrations" + var ErrNilConfig = fmt.Errorf("no config") + var ErrNoDatabaseName = fmt.Errorf("no database name") + var ErrNoPassword = fmt.Errorf("no password") + var ErrNoSchema = fmt.Errorf("no schema") + var ErrNoSchemaOrDatabase = fmt.Errorf("no schema/database name") + func WithInstance(instance *sql.DB, config *Config) (database.Driver, error) + type Config struct + DatabaseName string + MigrationsTable string + type Snowflake struct + func (p *Snowflake) Close() error + func (p *Snowflake) Drop() (err error) + func (p *Snowflake) Lock() error + func (p *Snowflake) Open(url string) (database.Driver, error) + func (p *Snowflake) Run(migration io.Reader) error + func (p *Snowflake) SetVersion(version int, dirty bool) error + func (p *Snowflake) Unlock() error + func (p *Snowflake) Version() (version int, dirty bool, err error)