Documentation ¶
Overview ¶
Package migrate supports a dbmate-compatible superset of migration files.
The superset is that in addition to a migration being a .sql file, it can also be a Go function which is called to execute the migration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MigrationFunc ¶ added in v0.328.4
type Option ¶ added in v0.328.4
type Option func(*migrateOptions)
Option is a configuration option for Migrate.
func Migration ¶
func Migration(version, name string, migration MigrationFunc) Option
Migration adds a named migration function to the migration set.
"version" must be in the form "<YYYY><MM><DD><hh><mm><ss>".
Click to show internal directories.
Click to hide internal directories.