Documentation ¶
Index ¶
- Variables
- func WithInstance(instance *sql.DB, config *Config) (database.Driver, error)
- type Config
- type Ql
- 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)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDatabaseDirty = fmt.Errorf("database is dirty") ErrNilConfig = fmt.Errorf("no config") ErrNoDatabaseName = fmt.Errorf("no database name") ErrAppendPEM = fmt.Errorf("failed to append PEM") )
View Source
var DefaultMigrationsTable = "schema_migrations"
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.