effect-io-ai

Package: @effect/sql-pg
Module: PgClient

PgClient.layer

Creates a layer from a concrete PostgreSQL pool configuration, providing both PgClient and SqlClient.

Signature

declare const layer: (config: PgPoolConfig) => Layer.Layer<PgClient | Client.SqlClient, SqlError>

Source

Since v4.0.0