chore: add tests for migrator

This commit is contained in:
Steven
2024-08-26 08:41:26 +08:00
parent 96b9269cd3
commit 525223c261
8 changed files with 147 additions and 108 deletions

View File

@@ -11,10 +11,6 @@ type Driver interface {
GetDB() *sql.DB
Close() error
// Type returns the type of the driver.
// Supported types are: sqlite, mysql, postgres.
Type() string
// MigrationHistory model related methods.
FindMigrationHistoryList(ctx context.Context, find *FindMigrationHistory) ([]*MigrationHistory, error)
UpsertMigrationHistory(ctx context.Context, upsert *UpsertMigrationHistory) (*MigrationHistory, error)