Minimal structural subset of the pg (node-postgres) client surface that the PostgreSQL backend relies on.
pg
We deliberately depend on this tiny local interface instead of @types/pg so that:
@types/pg
Any real pg.Client / pg.Pool / pg.PoolClient is structurally assignable to PgQueryable.
pg.Client
pg.Pool
pg.PoolClient
Optional
Minimal structural subset of the
pg(node-postgres) client surface that the PostgreSQL backend relies on.We deliberately depend on this tiny local interface instead of
@types/pgso that:pg(or its types) installed — the driver is an optional dependency that is lazy-required by the factory.Any real
pg.Client/pg.Pool/pg.PoolClientis structurally assignable to PgQueryable.