Versions in this module Expand all Collapse all v1 v1.0.0 Nov 22, 2025 Changes in this version + func AutoMigrate(ctx context.Context, db *sql.DB, dialect core.Dialect, models ...interface{}) error + type Config struct + TableName string + type Migration struct + Down func(context.Context, *sql.DB, core.Dialect) error + Name string + Up func(context.Context, *sql.DB, core.Dialect) error + Version int64 + func CreateTableMigration(version int64, name string, model interface{}) Migration + type MigrationStatus struct + Applied bool + Name string + Version int64 + type Migrator struct + func New(db *sql.DB, dialect core.Dialect, logger core.Logger, config Config) *Migrator + func (m *Migrator) Down(ctx context.Context) error + func (m *Migrator) Register(migration Migration) + func (m *Migrator) RegisterMultiple(migrations []Migration) + func (m *Migrator) Status(ctx context.Context) ([]MigrationStatus, error) + func (m *Migrator) Up(ctx context.Context) error