gooseutil

package
v4.0.0-...-4a233e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2025 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL