Versions in this module Expand all Collapse all v0 v0.1.1 Jul 24, 2026 v0.1.0 Jan 29, 2026 Changes in this version + func ClearMigrationRunners() + func ListMigrationRunners() []string + func RegisterMigrationRunner(id string, runner MigrationRunner) + func Rollback(ctx context.Context, db *sql.DB, gobaseChangelog io.Reader, targetID string) error + func RollbackWithFS(ctx context.Context, db *sql.DB, gobaseChangelog io.Reader, targetID string, ...) error + func RunMigration(ctx context.Context, db *sql.DB, gobaseChangelog io.Reader) error + func RunMigrationWithFS(ctx context.Context, db *sql.DB, gobaseChangelog io.Reader, fsys fs.FS) error + func UnregisterMigrationRunner(id string) bool + type AppliedChange struct + Author string + Checksum string + DateExecuted time.Time + Description string + ID string + OrderExecuted int + type Change struct + Author string + Comment string + Condition *Cond + FailOnError *bool + ID string + Rollback *RollbackSQL + RunnerRef *RunnerRef + SQL string + SqlFile *SqlFile + type Cond struct + SQL string + type Gobase struct + ChangelogTable string + Changes []Change + XMLName xml.Name + type MigrationError struct + Author string + ChangeID string + Err error + func (e *MigrationError) Error() string + func (e *MigrationError) Unwrap() error + type MigrationRunner interface + Rollback func(ctx context.Context, tx *sql.Tx) error + Run func(ctx context.Context, tx *sql.Tx) error + func GetMigrationRunner(id string) (MigrationRunner, error) + type RollbackSQL struct + SQL string + type RunnerRef struct + Runner string + type SqlFile struct + Path string + Rollback string