Skip to content

Function: createPostgresExecutors() ​

ts
function createPostgresExecutors(poolOrClient?): RuntimeExecutorRegistrySlice;

Defined in: postgres/src/executors/create-postgres-executors.ts:34

Creates a RuntimeExecutorRegistrySlice registering all @paraharness/postgres storage and source executors.

Binds 'postgres:ledger', 'postgres:topology', 'postgres:lessons', and 'postgres:global-rules' with late-bound ctx.resolveEnv(node.uri) resolution against poolOrClient or pg.Pool.

Parameters ​

ParameterTypeDescription
poolOrClient?| PostgresQueryClient | PostgresPoolFactory | PoolOptional pool factory, query client, or pg.Pool.

Returns ​

RuntimeExecutorRegistrySlice

Frozen executor registry slice for @paraharness/postgres.

Released under the MIT License.