Versions in this module Expand all Collapse all v1 v1.0.1 May 15, 2026 Changes in this version + var ErrDownScopeRequired = errors.New("gomigr: DownOptions requires To, Steps or All") + type DownOptions struct + All bool + Steps int + To string + type UpOptions struct + Steps int + To string v1.0.0 May 15, 2026 Changes in this version + var ErrLockBusy = store.ErrLockBusy + type MigrationStatus struct + AppliedAt time.Time + AppliedBy string + ID int64 + Name string + Status string + Version string + type Migrator struct + func New(ctx context.Context, opts Options) (*Migrator, error) + func (m *Migrator) Close() error + func (m *Migrator) Down(ctx context.Context, toVersion string) error + func (m *Migrator) Status(ctx context.Context) ([]MigrationStatus, error) + func (m *Migrator) Up(ctx context.Context, toVersion string) error + type Options struct + DSN string + Logger *slog.Logger + MigrationsDir string + User string