effect-io-ai

Package: @effect/sql-pg
Module: PgClient

PgClient.fromPool

Create a PgClient from an existing pg pool.

You control the pool lifecycle via acquire (typically Effect.acquireRelease).

Signature

declare const fromPool: (options: PgClientFromPoolOptions) => Effect.Effect<PgClient, SqlError, Scope.Scope | Reactivity.Reactivity>

Source

Since v1.0.0