migrate

package
v1.23.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 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, as run does, and names the sources, which run has no names for.

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