Help us shape the future of Go! Take the 2026 Go Developer Survey

migrate

package
v0.0.0-...-4f2a88f Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(opts Options, name string) error

func Down

func Down(opts Options) error

func Force

func Force(opts Options, target int) error

func Goto

func Goto(opts Options, target uint) error

func Status

func Status(opts Options) error

func Up

func Up(opts Options) error

func Version

func Version(opts Options) error

Types

type Options

type Options struct {
	ProjectDir    string
	ConfigPath    string
	MigrationsDir string
	Steps         int
}

func ResolveOptions

func ResolveOptions(opts Options) (Options, databaseYAML, error)

ResolveOptions loads config and resolves migrations dir to migrations/<driver>/ by default.

Jump to

Keyboard shortcuts

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