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

migrations

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Down00005

func Down00005(ctx context.Context, tx *sql.Tx) error

func Up00005

func Up00005(ctx context.Context, tx *sql.Tx) error

Types

type MigrationModule

type MigrationModule struct {
	DBModule string `yaml:"dbModule" default:"database.module.pgxpool" dep:"sessionmanager.Database"`
	// contains filtered or unexported fields
}

func (*MigrationModule) Migrate

func (m *MigrationModule) Migrate(ctx context.Context) error

func (*MigrationModule) Module

func (*MigrationModule) Provision

func (m *MigrationModule) Provision(ctx *sessionmanager.Context) error

func (*MigrationModule) ValidateSchema added in v0.20.0

func (m *MigrationModule) ValidateSchema(ctx context.Context) error

Jump to

Keyboard shortcuts

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