migration

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DialectPostgreSQL = goose.DialectPostgres
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Info(ctx context.Context, msg any, fields ...log.Field)
}

type Runner

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

func NewRunner

func NewRunner(
	dialect goose.Dialect,
	migrationDir string,
	logger Logger,
) Runner

func (Runner) Run

func (r Runner) Run(ctx context.Context, db *sql.DB, gooseOpts ...goose.ProviderOption) error

Jump to

Keyboard shortcuts

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