db

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fingerprint

func Fingerprint() string

Fingerprint returns a short stable hash of the embedded migrations. Test infrastructure uses it to cache one migrated template database per schema version, so cloning a fresh database is cheap.

func Migrate

func Migrate(databaseURL string) (retErr error)

Migrate applies database migrations under a PostgreSQL advisory lock so horizontally scaled app instances can safely start at the same time. The connection pool is constrained to one connection while migrating so the session-scoped advisory lock is held by the same connection used by goose.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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