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

pgmigrations

package
v1.15.6 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrations

type Migrations struct {
	DB                pginterfaces.PGXPoolConn
	Logger            logger.Logger
	MetadataTableName string
	MetadataKey       string
}

Migrations performs migrations for the database schema

func (Migrations) EnsureMetadataTable

func (m Migrations) EnsureMetadataTable(ctx context.Context) (err error)

func (Migrations) Perform

func (m Migrations) Perform(ctx context.Context, migrationFns []commonsql.MigrationFn) error

Perform the required migrations

Jump to

Keyboard shortcuts

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