repair

package
v1.219.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Applied  = "applied"
	Reverted = "reverted"
)

Variables

View Source
var ErrInvalidVersion = errors.New("invalid version number")

Functions

func GetMigrationFile added in v1.85.0

func GetMigrationFile(version string, fsys afero.Fs) (string, error)

func NewMigrationFromVersion added in v1.67.0

func NewMigrationFromVersion(version string, fsys afero.Fs) (*migration.MigrationFile, error)

func Run

func Run(ctx context.Context, config pgconn.Config, version []string, status string, fsys afero.Fs, options ...func(*pgx.ConnConfig)) error

func UpdateMigrationTable added in v1.68.3

func UpdateMigrationTable(ctx context.Context, conn *pgx.Conn, version []string, status string, repairAll bool, fsys afero.Fs) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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