Documentation ¶
Overview ¶
Clone from https://raw.githubusercontent.com/golang-migrate/migrate/master/database/sqlite3/sqlite3.go and only changed db driver
Index ¶
- Variables
- func GetTestDbConnections() []connectionData
- func MigrateInternalSqliteDb(db *sql.DB) error
- func WithSqliteMigrateInstance(instance *sql.DB, config *SqliteMigrateConfig) (database.Driver, error)
- type ConnectorFactory
- type CustomSqliteMigrate
- func (m *CustomSqliteMigrate) Close() error
- func (m *CustomSqliteMigrate) Drop() (err error)
- func (m *CustomSqliteMigrate) Lock() error
- func (m *CustomSqliteMigrate) Open(url string) (database.Driver, error)
- func (m *CustomSqliteMigrate) Run(migration io.Reader) error
- func (m *CustomSqliteMigrate) SetVersion(version int, dirty bool) error
- func (m *CustomSqliteMigrate) Unlock() error
- func (m *CustomSqliteMigrate) Version() (version int, dirty bool, err error)
- type DbType
- type SqliteMigrateConfig
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 ¶
func GetTestDbConnections ¶
func GetTestDbConnections() []connectionData
func MigrateInternalSqliteDb ¶
Types ¶
type ConnectorFactory ¶
func NewConnectorFactory ¶
func NewConnectorFactory() ConnectorFactory
type CustomSqliteMigrate ¶
type CustomSqliteMigrate struct {
// contains filtered or unexported fields
}
func (*CustomSqliteMigrate) Close ¶
func (m *CustomSqliteMigrate) Close() error
func (*CustomSqliteMigrate) Drop ¶
func (m *CustomSqliteMigrate) Drop() (err error)
func (*CustomSqliteMigrate) Lock ¶
func (m *CustomSqliteMigrate) Lock() error
func (*CustomSqliteMigrate) Open ¶
func (m *CustomSqliteMigrate) Open(url string) (database.Driver, error)
func (*CustomSqliteMigrate) SetVersion ¶
func (m *CustomSqliteMigrate) SetVersion(version int, dirty bool) error
func (*CustomSqliteMigrate) Unlock ¶
func (m *CustomSqliteMigrate) Unlock() error
type SqliteMigrateConfig ¶
Click to show internal directories.
Click to hide internal directories.