pgcache

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatalogPrefixFromConfig

func CatalogPrefixFromConfig(config pgconn.Config) string

func CleanupOldMigrationCatalogs

func CleanupOldMigrationCatalogs(fsys afero.Fs, prefix string) error

func HashMigrations

func HashMigrations(fsys afero.Fs) (string, error)

func MigrationCatalogPath

func MigrationCatalogPath(hash, prefix string, createdAt time.Time) string

func ResolveMigrationCatalogPath

func ResolveMigrationCatalogPath(fsys afero.Fs, hash, prefix string) (string, bool, error)

func SanitizedCatalogPrefix

func SanitizedCatalogPrefix(prefix string) string

func ShouldCacheMigrationsCatalog

func ShouldCacheMigrationsCatalog() bool

func TryCacheMigrationsCatalog

func TryCacheMigrationsCatalog(ctx context.Context, config pgconn.Config, prefix string, version string, fsys afero.Fs, options ...func(*pgx.ConnConfig)) error

func WriteMigrationCatalogSnapshot

func WriteMigrationCatalogSnapshot(fsys afero.Fs, prefix, hash, snapshot string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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