Versions in this module Expand all Collapse all v0 v0.1.1 Feb 10, 2023 Changes in this version + const MigrationSQLFilePattern + func LoadMigrations(folder string) ([]SQLMigration, []SQLMigration, error) + type Migrator struct + func NewMigrator(db *sql.DB, upMigrations, downMigrations []SQLMigration) Migrator + func (m Migrator) MigrateDown(step int) error + func (m Migrator) MigrateUp(step int) error + type SQLMigration struct + func NewSQLMigration(version int64, description string, sql string, fileName string) (SQLMigration, error) + func (m SQLMigration) CheckValid() error + func (m SQLMigration) Execute(ctx context.Context, tx *sql.Tx) error + func (m SQLMigration) Less(m2 SQLMigration) bool v0.1.0 Feb 7, 2022