migrations

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckExpectedVersion added in v1.2.1

func CheckExpectedVersion(ctx context.Context, pool *pgxpool.Pool) error

CheckExpectedVersion verifies that the lrdb database is at the expected migration version using default options (wait mode)

func CheckVersion added in v1.2.1

func CheckVersion(ctx context.Context, pool *pgxpool.Pool, options ...migrations.CheckOption) error

CheckVersion verifies that the lrdb database is at the expected migration version with configurable options

func GetMigrationFiles added in v1.2.1

func GetMigrationFiles() embed.FS

GetMigrationFiles returns the embedded migration files for version checking

func RunMigrationsUp

func RunMigrationsUp(ctx context.Context, pool *pgxpool.Pool) error

RunMigrationsUp applies all up migrations using embedded migration files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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