Documentation
¶
Index ¶
- func ApplyAll(ctx context.Context, url string) (int, error)
- func Down(ctx context.Context, url, targetName string) (int, error)
- func DumpMigrations(dest string) error
- func LatestID() string
- func Names() []string
- func Up(ctx context.Context, url, targetName string) (int, error)
- func VerifyAll(ctx context.Context, url string) error
- func VerifyIsLatest(ctx context.Context, url string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Down ¶
Down will roll back all migrations up to, but NOT including, targetName.
If the DB contains unknown migrations, err is returned.
func DumpMigrations ¶
DumpMigrations will attempt to write all migration files to the specified directory
func LatestID ¶ added in v0.33.0
func LatestID() string
LatestID will return the ID of the latest migration.
func Names ¶
func Names() []string
Names will return all AssetNames without the timestamps and extensions
func Up ¶
Up will apply all migrations up to, and including, targetName. If targetName is empty, all available migrations are applied.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.