Versions in this module Expand all Collapse all v0 v0.2.0 Jul 30, 2026 Changes in this version + func SchemaExists(ctx context.Context, dsn, schema string, opts ...Option) (bool, error) + type NewOption func(*newOptions) + func WithEnsureSchema(schema string) NewOption + func WithSessionLock() NewOption + func WithVersionTable(name string) NewOption type Runner + func (r *Runner) AppliedVersion(ctx context.Context, dsn string, opts ...Option) (int64, error) v0.1.0 Jul 22, 2026 Changes in this version + func WriteStatus(w io.Writer, statuses []MigrationStatus) error + type MigrationStatus struct + Applied bool + AppliedAt time.Time + Source string + Version int64 + type Option func(*options) + func PoolerSafe() Option + type Runner struct + func New(fsys fs.FS, dir string) (*Runner, error) + func (r *Runner) Down(ctx context.Context, dsn string, opts ...Option) error + func (r *Runner) DownTo(ctx context.Context, dsn string, version int64, opts ...Option) error + func (r *Runner) Reset(ctx context.Context, dsn string, opts ...Option) error + func (r *Runner) Status(ctx context.Context, dsn string, opts ...Option) ([]MigrationStatus, error) + func (r *Runner) Up(ctx context.Context, dsn string, opts ...Option) error + func (r *Runner) UpTo(ctx context.Context, dsn string, version int64, opts ...Option) error