- Applies to
packages/testkit-postgres. - Provides Postgres-aware fixture/DDL helpers used by adapters through a driver-agnostic executor boundary.
- Exposes client-creation and fixture-state helpers without direct
pgdependency.
- Public API surface MUST stay independent from
pgsymbols. - Adapter integration MUST pass a
QueryExecutorimplementation from adapter packages. - Fixture rows MUST be validated against table definitions before executor invocation.
- Adapter wiring MUST call
createPostgresTestkitClientusing a real driver-backed executor.
- Postgres semantics MAY be represented through DDL fixture/table-name normalization behavior.
- Importing or re-exporting
pgtypes/symbols from this package. - Managing driver connection lifecycles in this package.
- Duplicating adapter-level pool/wrapper logic.
- Before committing changes under
packages/testkit-postgres, run:pnpm --filter @rawsql-ts/testkit-postgres lintpnpm --filter @rawsql-ts/testkit-postgres testpnpm --filter @rawsql-ts/testkit-postgres build
- Driver-specific tests MUST remain in adapter packages.
- Parent policy context: ../../AGENTS.md