Versions in this module Expand all Collapse all v0 v0.2.0 Jul 30, 2026 Changes in this version + func HandleCommand(ctx context.Context, args []string, runner *Runner, migrations []Migration, ...) (handled bool, err error) + func IsCommand(command string) bool + type AppliedMigration struct + AppliedAt time.Time + Name string + Version int64 + type Dialect struct + func DialectForDriver(driverName string) (Dialect, error) + func MySQL() Dialect + func PostgreSQL() Dialect + func SQLite() Dialect + func (d Dialect) Name() string + type Migration struct + Down []string + Name string + Up []string + Version int64 + func LoadFS(filesystem fs.FS, directory string) ([]Migration, error) + func ValidateMigrations(migrations []Migration) ([]Migration, error) + type Option func(*Runner) error + func WithTable(table string) Option + type Runner struct + func New(db *sql.DB, dialect Dialect, options ...Option) (*Runner, error) + func (r *Runner) Down(ctx context.Context, migrations []Migration, steps int) (count int, err error) + func (r *Runner) Statuses(ctx context.Context, migrations []Migration) ([]Status, error) + func (r *Runner) Up(ctx context.Context, migrations []Migration, limit int) (count int, err error) + type Status struct + Applied bool + AppliedAt time.Time + Name string + Version int64