Versions in this module Expand all Collapse all v4 v4.0.12 Feb 21, 2024 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") + func WithInstance(instance *sql.DB, config *Config) (database.Driver, error) + type Config struct + DatabaseName string + MigrationsTable string + type Ql struct + func (m *Ql) Close() error + func (m *Ql) Drop() (err error) + func (m *Ql) Lock() error + func (m *Ql) Open(url string) (database.Driver, error) + func (m *Ql) Run(migration io.Reader) error + func (m *Ql) SetVersion(version int, dirty bool) error + func (m *Ql) Unlock() error + func (m *Ql) Version() (version int, dirty bool, err error)