Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v0.5.0
func New(source *m.GolangMigrationSource, updateVersion UpdateVersion, applied AppliedVersions) (m.Driver, error)
New creates a new Go migration driver. It requires a source a function for saving the executed migration version, a function for deleting a version that was migrated downwards, a function for listing all applied migrations and optionally a configuration.
Types ¶
type AppliedVersions ¶ added in v0.5.0
AppliedVersions returns a list of applied versions and an error if something fails
type Driver ¶ added in v0.5.0
type Driver struct {
// contains filtered or unexported fields
}
Driver is the golang migration.Driver implementation
Click to show internal directories.
Click to hide internal directories.