migrator

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, db *sql.DB, log logger.Logger, opts ...Option) error

func RunEmbedded

func RunEmbedded(ctx context.Context, db *sql.DB, log logger.Logger, opts ...Option) error

RunEmbedded executes migrations bundled into the backend module.

Types

type Option

type Option func(o *Options)

func WithArgs

func WithArgs(args ...string) Option

func WithCommand

func WithCommand(command string) Option

func WithDirectory

func WithDirectory(directory string) Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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