postgres

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 10 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                postgresadapter.PGXPoolConn
	MetadataTableName string
	MetadataKey       string
}

Migrations performs migrations for the database schema

func (Migrations) EnsureMetadataTable

func (m Migrations) EnsureMetadataTable(ctx context.Context, logger *slog.Logger) (err error)

func (Migrations) Perform

func (m Migrations) Perform(ctx context.Context, migrationFns []migrations.MigrationFn, logger *slog.Logger) error

Perform the required migrations

Jump to

Keyboard shortcuts

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