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

Function layerConfig

packages/sql/pg/src/PgClient.ts:813–819  ·  view source on GitHub ↗
(
  config: Config.Wrap<PgPoolConfig>
)

Source from the content-addressed store, hash-verified

811export const layerConfig: (
812 config: Config.Wrap<PgPoolConfig>
813) => Layer.Layer<PgClient | Client.SqlClient, Config.ConfigError | SqlError> = (
814 config: Config.Wrap<PgPoolConfig>
815): Layer.Layer<PgClient | Client.SqlClient, Config.ConfigError | SqlError> =>
816 layerFrom(Effect.flatMap(
817 Config.unwrap(config),
818 make
819 ))
820
821/**
822 * Creates a layer from a concrete PostgreSQL pool configuration, providing both `PgClient` and `SqlClient`.

Callers

nothing calls this directly

Calls 1

layerFromFunction · 0.70

Tested by

no test coverage detected