Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupTestDB ¶
SetupTestDB starts an ephemeral Postgres 17 container, runs all migrations, and returns a ready pgxpool.Pool. The container and pool are closed automatically when the test finishes.
func SetupTestDBAtVersion ¶ added in v0.10.0
SetupTestDBAtVersion is SetupTestDB stopped at a specific migration version, so a migration can be exercised against a populated older database rather than against a schema that already contains it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.