Versions in this module Expand all Collapse all v0 v0.0.2 Aug 11, 2025 Changes in this version + func FormatPlan(plan PlanResult) string + type ApplyOptions struct + AllowDropColumns bool + AllowDropConstraints bool + AllowDropIndexes bool + type ManualOptions struct + AllowColumnDrop bool + AllowTableDrop bool + type Migrator struct + func NewMigrator(pool *pgxpool.Pool) *Migrator + func (m *Migrator) AutoMigrate(ctx context.Context, models ...any) error + func (m *Migrator) AutoMigrateWithOptions(ctx context.Context, opts ApplyOptions, models ...any) error + func (m *Migrator) MigrateDownDir(ctx context.Context, dir string, steps int) error + func (m *Migrator) MigrateUpDir(ctx context.Context, dir string) error + func (m *Migrator) Plan(ctx context.Context, models ...any) (PlanResult, error) + func (m *Migrator) SetManualOptions(opts ManualOptions) + type PlanResult struct + ConstraintDrops []string + DestructiveStatements []string + IndexDrops []string + Statements []string + UnsafeStatements []string + Warnings []string v0.0.1 Aug 10, 2025