Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MigrationFunc ¶
type Migrations ¶
type Migrations struct {
// contains filtered or unexported fields
}
func (*Migrations) AddMigration ¶
func (m *Migrations) AddMigration( id int, descr string, up MigrationFunc, down MigrationFunc, ) error
func (*Migrations) MigrateToLatest ¶
func (m *Migrations) MigrateToLatest(db *sql.DB) error
Click to show internal directories.
Click to hide internal directories.