Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Error = errs.Class("migrate")
Error is the default migrate errs class
Functions ¶
Types ¶
type DB ¶
DB is the minimal implementation that is needed by migrations.
DB can optionally have `Rebind(string) string` for translating `? queries for the specific database.
type Migration ¶
Migration describes a migration steps
func (*Migration) TargetVersion ¶
TargetVersion returns migration with steps upto specified version
func (*Migration) ValidTableName ¶
ValidTableName checks whether the specified table name is valid
func (*Migration) ValidateSteps ¶
ValidateSteps checks whether the specified table name is valid
Click to show internal directories.
Click to hide internal directories.