Documentation
¶
Overview ¶
Package pgtest gives each test its own migrated Postgres database.
DIFFX_TEST_DATABASE_URL (a postgres:// URL whose role may create databases) selects a running server; otherwise one container starts per test process and Ryuk removes it when the process exits. A template database migrated by the embedded schema is created once per schema and cloned for every test.
Index ¶
Constants ¶
View Source
const EnvURL = "DIFFX_TEST_DATABASE_URL"
EnvURL names the variable selecting an existing server.
View Source
const Image = "postgres:18-alpine@sha256:10a5c69a83035ab5239f5620d708520e8b28f5aa1f2b20143e6024532edadfb5"
Image is the pinned server for tests and development.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.