MCPcopy Create free account
hub / github.com/Effect-TS/effect / layer

Function layer

packages/sql/pg/src/PgClient.ts:582–585  ·  view source on GitHub ↗
(
  config: PgPoolConfig<R>
)

Source from the content-addressed store, hash-verified

580 * @since 4.0.0
581 */
582export const layer = <R = never>(
583 config: PgPoolConfig<R>
584): Layer.Layer<PgClient | Client.SqlClient, SqlError, Exclude<R, Scope.Scope | Reactivity.Reactivity>> =>
585 layerFrom(make(config))
586
587/**
588 * Creates the PostgreSQL statement compiler.

Callers

nothing calls this directly

Calls 2

layerFromFunction · 0.70
makeFunction · 0.70

Tested by

no test coverage detected