Documentation ¶
Overview ¶
Package sqlite3 contains an implementation of the go-migrate database.Driver interface using a pure go sqlite3 driver this is almost entirely a copy/paste from the upstream sqlite3 driver swapping underlying drivers
Index ¶
- Variables
- func WithInstance(instance *sql.DB, config *Config) (database.Driver, error)
- type Config
- type Sqlite
- 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() (int, bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDatabaseDirty ... ErrDatabaseDirty = fmt.Errorf("database is dirty") // ErrNilConfig ... ErrNilConfig = fmt.Errorf("no config") // ErrNoDatabaseName ... ErrNoDatabaseName = fmt.Errorf("no database name") )
View Source
var DefaultMigrationsTable = "schema_migrations"
DefaultMigrationsTable ...
Functions ¶
Types ¶
type Sqlite ¶
type Sqlite struct {
// contains filtered or unexported fields
}
Sqlite ...
func (*Sqlite) SetVersion ¶
SetVersion ...
Click to show internal directories.
Click to hide internal directories.