pgmigrate

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

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

Migrator holds logic of how to load and apply database migrations to Postgres.

func New

func New(conn *pgxpool.Pool, migrations fs.FS) (*Migrator, error)

New returns a pointer to a new instance of Migrator.

func (*Migrator) Close

func (m *Migrator) Close() error

func (*Migrator) Migrate

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

Migrate performs migration of database schema.

Jump to

Keyboard shortcuts

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