pgmigrations

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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