Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseFunction ¶
func NoopDBFunc ¶
func NoopDBFunc() DatabaseFunction
type GetVersionFunc ¶
type Migration ¶
type Migration struct { SchemaVersion int Up DatabaseFunction Down DatabaseFunction }
type Migrator ¶
type Migrator struct { CheckSequence bool GetVersion GetVersionFunc SetVersion SetVersionFunction BeforeAll DatabaseFunction AfterAll DatabaseFunction BeforeEach DatabaseFunction AfterEach DatabaseFunction // contains filtered or unexported fields }
func NewMigrator ¶
func NewMigrator(getVersion GetVersionFunc, setVersion SetVersionFunction) Migrator
func (*Migrator) MigrateToLatest ¶
func (*Migrator) RegisterMigrations ¶
type SetVersionFunction ¶
Click to show internal directories.
Click to hide internal directories.