Loads the conformance fixture database.
Idempotent. Steps:
- Drop and (re)create the
bier_testdatabase. - Ensure the
postgrest_test_*roles exist (the fixtures also create them idempotently; this is a belt-and-suspenders for shared clusters). - Load
spec/conformance/fixtures.sqlwithpsql -v ON_ERROR_STOP=1. - Load
spec/conformance/fixtures_local.sql(the human-owned supplement, seespec/conformance/fixtures/README.md) the same way, if present. - Mirror schema
testinto each pure table/data area schema (operators,ordering,pagination,representations,mutations,headers,config,domain_representations) as auto-updatable views, so requests carryingAccept-Profile: <area>resolve to real exposed schemas.
Connection parameters come from the standard PG* environment variables
(see db_config/0).
mix bier.fixtures.load