Documentation ¶
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) ListAppliedVersions() ([]int, 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) SetSourceDriver(sourceDrv source.Driver) error
- func (m *Sqlite) SetVersion(version int, dirty bool, forced bool, knownDirection *source.Direction) (*source.Direction, error)
- func (m *Sqlite) Unlock() error
- func (m *Sqlite) 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") )
View Source
var DefaultMigrationsTable = "schema_migrations"
Functions ¶
Types ¶
type Sqlite ¶
type Sqlite struct {
// contains filtered or unexported fields
}
func (*Sqlite) ListAppliedVersions ¶
func (*Sqlite) SetSourceDriver ¶
This database driver does not currently support file sourcing.
func (*Sqlite) SetVersion ¶
Click to show internal directories.
Click to hide internal directories.