Documentation
¶
Overview ¶
Package storetest gives tests a fresh, migrated PostgreSQL database.
It uses the server at PANELARR_TEST_DATABASE_URL when set, otherwise it starts a postgres container with testcontainers (once per test binary). Each call creates its own database and drops it when the test ends, so tests can run in parallel. The role only needs CREATEDB.
Index ¶
Constants ¶
View Source
const Image = "postgres:18-alpine"
Image is the PostgreSQL image used when no server is configured.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.