Documentation
¶
Overview ¶
Package gooseutil provides utility functions we want to keep internal to the package. It's intended to be a collection of well-tested helper functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpVersions ¶
func UpVersions( fsysVersions []int64, dbVersions []int64, target int64, allowMissing bool, ) ([]int64, error)
UpVersions returns a list of migrations to apply based on the versions in the filesystem and the versions in the database. The target version can be used to specify a target version. In most cases this will be math.MaxInt64.
The allowMissing flag can be used to allow missing migrations as part of the list of migrations to apply. Otherwise, an error will be returned if there are missing migrations in the database.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.