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

Function layer

packages/sql/pg/src/PgClient.ts:827–829  ·  view source on GitHub ↗
(
  config: PgPoolConfig
)

Source from the content-addressed store, hash-verified

825 * @since 4.0.0
826 */
827export const layer = (
828 config: PgPoolConfig
829): Layer.Layer<PgClient | Client.SqlClient, SqlError> => layerFrom(make(config))
830
831/**
832 * Creates the PostgreSQL statement compiler, using `$1` placeholders, double-quoted identifiers, PostgreSQL returning clauses, and optional JSON value transformation.

Callers

nothing calls this directly

Calls 2

layerFromFunction · 0.70
makeFunction · 0.70

Tested by

no test coverage detected