Versions in this module Expand all Collapse all v1 v1.3.0 Mar 10, 2021 Changes in this version + const NoTransactionPrefix + var ErrFsNotWriteable = fmt.Errorf("Migration filesystem not writeable") + type DB interface + BeginTx func(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error) + ExecContext func(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + QueryContext func(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + QueryRowContext func(ctx context.Context, query string, args ...interface{}) *sql.Row + type Migrator interface + Create func(ctx context.Context, name string) error + GetVersion func(ctx context.Context) (int, error) + HasPending func(ctx context.Context) (bool, error) + MigrateLatest func(ctx context.Context) error + MigrateTo func(ctx context.Context, version int) error + SetOutputWriter func(io.Writer) + SetTableName func(name string) + SetTableSchema func(schema string) + func New(db DB, migrationDir string, paramType ParamType) Migrator + func NewFs(db DB, fs fs.FS, paramType ParamType) Migrator + type ParamType int + const ParamTypeDollarSign + const ParamTypeQuestionMark