Expand description
Shared Postgres test infrastructure: per-test throwaway databases on
the server named by FZ_TEST_POSTGRES_URL, so tests never see each
other’s tables (issue #18).
Exported so cratefield-testing’s parity kit (issue #20) reuses the
exact helper this crate’s own contract tests use — one
implementation, not two. Tests skip with a printed reason when the
variable is unset (CI provides a postgres:16 service container).
Structs§
- TempDb
- A fresh database named
fz_<tag>_<pid>_<n>on the given server; callTempDb::finishto drop it.
Functions§
- base_
url - The server URL from
FZ_TEST_POSTGRES_URL, when set (trimmed and non-empty). - skip_
reason - The skip reason printed when a test cannot run without a server.