Versions in this module Expand all Collapse all v1 v1.0.0 Mar 21, 2026 Changes in this version + const CorePluginID + const DefaultSchemaTable + func ExecStatements(ctx context.Context, tx bun.Tx, statements ...string) error + type Logger interface + Debug func(msg string, args ...any) + Error func(msg string, args ...any) + Info func(msg string, args ...any) + Warn func(msg string, args ...any) + type Migration struct + Down func(ctx context.Context, tx bun.Tx) error + Up func(ctx context.Context, tx bun.Tx) error + Version string + func ForProvider(provider string, variants ProviderVariants) []Migration + type MigrationSet struct + DependsOn []string + Migrations []Migration + PluginID string + func CoreMigrationSet(provider string) (MigrationSet, error) + type Migrator struct + func NewMigrator(db bun.IDB, logger Logger, opts ...MigratorOption) (*Migrator, error) + func (m *Migrator) ListApplied(ctx context.Context, pluginID string) ([]schemaMigration, error) + func (m *Migrator) Migrate(ctx context.Context, sets []MigrationSet) error + func (m *Migrator) RollbackAll(ctx context.Context, sets []MigrationSet) error + func (m *Migrator) RollbackLast(ctx context.Context, set MigrationSet) error + type MigratorOption func(*Migrator) + type ProviderVariants map[string]func() []Migration