pgxmig

package module
v0.0.0-...-49330fd Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 5 Imported by: 0

README

pgxmig

Package pgxmig supports running embedded pgx migrations.

Documentation

Overview

Package pgxmig supports running embedded pgx migrations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	Begin(ctx context.Context) (pgx.Tx, error)
}

DB must be satisfied for executing migrations.

type Source

type Source struct {
	FS   fs.FS
	Glob string
}

Source defines a FS and correlated Glob to provide a source of migrations.

func (Source) Migrate

func (s Source) Migrate(ctx context.Context, db DB) error

Migrate runs the migrations on the target DB.

Jump to

Keyboard shortcuts

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