Versions in this module Expand all Collapse all v0 v0.13.0 Sep 19, 2017 Changes in this version + const DefaultTable + func Exec(db *sql.DB, dir MigrationDirection, migrations ...Migration) error + func Queries(queries []string) func(*sql.Tx) error + type ByID []Migration + func (m ByID) Len() int + func (m ByID) Less(i, j int) bool + func (m ByID) Swap(i, j int) + type Migration struct + Down func(tx *sql.Tx) error + ID int + Up func(tx *sql.Tx) error + type MigrationDirection int + const Down + const Up + type MigrationError struct + Err error + func (e *MigrationError) Error() string + type Migrator struct + Table string + TransactionMode TransactionMode + func NewMigrator(db *sql.DB) *Migrator + func NewPostgresMigrator(db *sql.DB) *Migrator + func (m *Migrator) Exec(dir MigrationDirection, migrations ...Migration) error + type TransactionMode int + const IndividualTransactions + const SingleTransaction