effect-io-ai

Package: @effect/sql-pglite
Module: PgliteClient

PgliteClient.make

Creates a scoped PGlite SQL client. When no live client is supplied it creates and closes a PGlite instance; when liveClient is supplied, the caller retains ownership.

Signature

declare const make: (options?: PgliteClientConfig) => Effect.Effect<PgliteClient, SqlError, Scope.Scope | Reactivity.Reactivity>

Source

Since v4.0.0