Versions in this module Expand all Collapse all v1 v1.0.0 Feb 16, 2024 Changes in this version + type DB interface + ExecContext func(ctx context.Context, query string, args ...any) (sql.Result, error) + QueryContext func(ctx context.Context, query string, args ...any) (*sql.Rows, error) + QueryRowContext func(ctx context.Context, query string, args ...any) *sql.Row + type Migrator struct + func New(db DB, schema Schema) *Migrator + func (m *Migrator) Migrate(ctx context.Context) error + type Schema interface + CreateMigrationTable func(ctx context.Context, db DB) error + CreateSchema func(ctx context.Context, db DB) error + InsertMigrationRow func(ctx context.Context, db DB, version uint32, fileName, sha string) error + Migrations func() map[string]string + SelectLock func(ctx context.Context, db DB) error + SelectMaxMigration func(ctx context.Context, db DB) *sql.Row + SelectUnlock func(ctx context.Context, db DB) error + type TableNames struct + Prefix string + Schema string