Versions in this module Expand all Collapse all v0 v0.1.0 Jun 1, 2022 Changes in this version + func Migrate(s store, migrations Migrations, repoOrder RepoOrder) (int, error) + func Rollback(s store, migrations Migrations, repoOrder RepoOrder, toMigrationSerial int) (int, error) + type IntegrityCheckResult struct + InvalidChecksums map[Repo][]migrationLog + IsCorrupted bool + RedundantMigrations map[Repo][]migrationLog + RedundantRepos map[Repo]bool + func CheckLogTableIntegrity(s store, migrations Migrations) (*IntegrityCheckResult, error) + type Migration struct + Description string + Down string + Up string + func ReadDir(fileSys fs.FS, path string) ([]Migration, error) + type Migrations map[Repo][]Migration + type PostgresStore struct + DB *sqlx.DB + func (s PostgresStore) CreateLogTable() error + type Repo string + type RepoOrder []Repo