Documentation
¶
Overview ¶
Package sqltest provides PostgreSQL for the store contract runs. It starts one container per test binary with testcontainers-go and skips the calling test where Docker cannot run Linux containers (decision 0015), so the suite runs everywhere and the PostgreSQL half runs in the Linux CI jobs. Set ARTIFACTWEAVE_TEST_POSTGRES_DSN to use an existing server instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostgresDSN ¶
PostgresDSN returns a DSN for the PostgreSQL server shared by the test binary, or skips t when there is none and Docker cannot run Linux containers.
func Reset ¶
Reset rolls every migration back and applies them again, leaving an empty schema. Running it before each contract test also exercises every down migration on every run.