Versions in this module Expand all Collapse all v1 v1.0.1 Dec 16, 2022 v1.0.0 Dec 16, 2022 Changes in this version + var DefaultMigrationsTable = "schema_migrations" + var ErrDatabaseDirty = fmt.Errorf("database is dirty") + var ErrMultipleAuthOptionsPassed = fmt.Errorf("both password and useMsi=true were passed.") + var ErrNilConfig = fmt.Errorf("no config") + var ErrNoDatabaseName = fmt.Errorf("no database name") + var ErrNoSchema = fmt.Errorf("no schema") + func WithInstance(instance *sql.DB, config *Config) (database.Driver, error) + type Config struct + DatabaseName string + MigrationsTable string + SchemaName string + type SQLServer struct + func (ss *SQLServer) Close() error + func (ss *SQLServer) Drop() error + func (ss *SQLServer) Lock() error + func (ss *SQLServer) Open(url string) (database.Driver, error) + func (ss *SQLServer) Run(migration io.Reader) error + func (ss *SQLServer) SetVersion(version int, dirty bool) error + func (ss *SQLServer) Unlock() error + func (ss *SQLServer) Version() (version int, dirty bool, err error)