Versions in this module Expand all Collapse all v1 v1.10.2 Jun 26, 2023 Changes in this version + var DefaultMigrationsTable = "schema_migrations" + var ErrDatabaseDirty = fmt.Errorf("database is dirty") + var ErrNilConfig = fmt.Errorf("no config") + var ErrNoDatabaseName = fmt.Errorf("no database name") + func WithInstance(instance *sql.DB, config *Config) (database.Driver, error) + type Config struct + DatabaseName string + MigrationsTable string + NoTxWrap bool + type Sqlite struct + func (m *Sqlite) Close() error + func (m *Sqlite) Drop() (err error) + func (m *Sqlite) Lock() error + func (m *Sqlite) Open(url string) (database.Driver, error) + func (m *Sqlite) Run(migration io.Reader) error + func (m *Sqlite) SetVersion(version int, dirty bool) error + func (m *Sqlite) Unlock() error + func (m *Sqlite) Version() (version int, dirty bool, err error)