migrate

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MigrationsTag = migrationsTag{}

Functions

func CheckShared added in v1.14.0

func CheckShared(sources map[string]fs.FS) error

CheckShared refuses a version two sources ship with different contents: the sources share one bookkeeping table, so goose applies whichever runs first and skips the other without a word.

func NewMigrateCommand

func NewMigrateCommand(migrations []fs.FS, command app.BaseCommand, connection sql.Db) *migrateCommand

func Up added in v1.10.11

func Up(sources ...fs.FS) func(ctx context.Context, handle *dbSql.DB) error

Postgres, because sqltest speaks nothing else.

Types

type MigrateCommand

type MigrateCommand interface {
	app.Command
}

Jump to

Keyboard shortcuts

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