Versions in this module Expand all Collapse all v3 v3.0.1 Nov 20, 2023 v3.0.0 Nov 20, 2023 Changes in this version + type Dialect string + const Clickhouse + const Mysql + const Postgres + const Redshift + const Sqlanywhere + const Sqlite3 + const Sqlserver + const Tidb + const Vertica + const Ydb + type GetMigrationResult struct + IsApplied bool + Timestamp time.Time + type ListMigrationsResult struct + IsApplied bool + VersionID int64 + type Store interface + CreateVersionTable func(ctx context.Context, tx *sql.Tx, tableName string) error + DeleteVersion func(ctx context.Context, tx *sql.Tx, tableName string, version int64) error + DeleteVersionNoTx func(ctx context.Context, db *sql.DB, tableName string, version int64) error + GetMigration func(ctx context.Context, db *sql.DB, tableName string, version int64) (*GetMigrationResult, error) + InsertVersion func(ctx context.Context, tx *sql.Tx, tableName string, version int64) error + InsertVersionNoTx func(ctx context.Context, db *sql.DB, tableName string, version int64) error + ListMigrations func(ctx context.Context, db *sql.DB, tableName string) ([]*ListMigrationsResult, error) + func NewStore(d Dialect) (Store, error)