Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MigrateFunc ¶
MigrateFunc is a function that executes a migration.
type Migration ¶
type Migration struct { Version int64 Name string Migrate MigrateFunc Rollback MigrateFunc }
Migration is a struct that contains the name of the migration and the function to execute it.
type Migrations ¶
Migrations is a database model to store migrations.
Click to show internal directories.
Click to hide internal directories.