effect-io-ai

Package: @effect/sql-pg
Module: PgClient

PgClient.makeClient

Creates a scoped PostgreSQL client backed by a managed single pg client, optionally acquiring a separate client for streaming and LISTEN operations.

Signature

declare const makeClient: (options: PgClientConfig & { readonly acquireForStream?: boolean | undefined; }) => Effect.Effect<PgClient, SqlError, Scope.Scope | Reactivity.Reactivity>

Source

Since v4.0.0