Skip to content

Interface: PostgresPoolFactory ​

Defined in: postgres/src/ddl/postgres-pool-factory.ts:9

Factory contract resolving a PostgreSQL connection URI into an active PostgresQueryClient.

Supplied to createPostgresExecutors(poolFactory) so runtime ledger, topology, lesson, and global-rule executors can open connections against late-bound EnvRef connection strings.

Methods ​

getClient() ​

ts
getClient(connectionUri): 
  | PostgresQueryClient
| Promise<PostgresQueryClient>;

Defined in: postgres/src/ddl/postgres-pool-factory.ts:19

Acquires or creates a PostgresQueryClient for the resolved connectionUri.

Implementations may memoize pools per URI or return a pre-configured client instance.

Parameters ​

ParameterTypeDescription
connectionUristringResolved PostgreSQL connection URI.

Returns ​

| PostgresQueryClient | Promise<PostgresQueryClient>

Active query client for connectionUri.

Released under the MIT License.