Documentation ¶
Index ¶
- func DeleteMigrate(db *sql.DB, id string) error
- func Do(DBFunc func() *sql.DB, dialect gorp.Dialect, sqlMigrateDir string, ...) ([]*migrate.PlannedMigration, error)
- func Get(DBFunc func() *sql.DB, dir string, dialect gorp.Dialect) ([]sdk.DatabaseMigrationStatus, error)
- func List(db *sql.DB) ([]sdk.DatabaseMigrationStatus, error)
- func UnlockMigrate(db *sql.DB, id string, dialect gorp.Dialect) error
- type DatabaseMigration
- type MigrationLock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteMigrate ¶
DeleteMigrate delete an ID from table gorp_migrations
func Do ¶
func Do(DBFunc func() *sql.DB, dialect gorp.Dialect, sqlMigrateDir string, dir migrate.MigrationDirection, dryrun bool, limit int) ([]*migrate.PlannedMigration, error)
Do applies migration
func Get ¶
func Get(DBFunc func() *sql.DB, dir string, dialect gorp.Dialect) ([]sdk.DatabaseMigrationStatus, error)
Get the status of all migration scripts
Types ¶
type DatabaseMigration ¶
DatabaseMigration represents an entry in table gorp_migrations
Click to show internal directories.
Click to hide internal directories.