package gooseutil
import "github.com/pressly/goose/v3/internal/gooseutil"
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 ¶
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.
Source Files ¶
- Version
- v3.24.0
- Published
- Dec 19, 2024
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 50 minutes ago –
Tools for package owners.