effect-io-ai

Package: @effect/sql-pg
Module: PgClient

PgClient.layerFrom

Creates a layer from an effect that acquires a PgClient, providing both PgClient and SqlClient.

Signature

declare const layerFrom: <E, R>(acquire: Effect.Effect<PgClient, E, R>) => Layer.Layer<PgClient | Client.SqlClient, E, Exclude<R, Scope.Scope | Reactivity.Reactivity>>

Source

Since v4.0.0