effect-io-ai

Package: @effect/sql-pglite
Module: PgliteClient

PgliteClient.layerFrom

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

Signature

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

Source

Since v4.0.0