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

Function layerConfig

packages/sql/pglite/src/PgliteClient.ts:366–372  ·  view source on GitHub ↗
(
  config: Config.Wrap<PgliteClientConfig.ConfigBase>
)

Source from the content-addressed store, hash-verified

364export const layerConfig: (
365 config: Config.Wrap<PgliteClientConfig.ConfigBase>
366) => Layer.Layer<PgliteClient | Client.SqlClient, Config.ConfigError | SqlError> = (
367 config: Config.Wrap<PgliteClientConfig.ConfigBase>
368): Layer.Layer<PgliteClient | Client.SqlClient, Config.ConfigError | SqlError> =>
369 layerFrom(Effect.flatMap(
370 Config.unwrap(config),
371 (resolved) => make(resolved as PgliteClientConfig)
372 ))
373
374/**
375 * Creates a layer from a concrete PGlite client configuration, providing both `PgliteClient` and `SqlClient`.

Callers

nothing calls this directly

Calls 2

layerFromFunction · 0.70
makeFunction · 0.70

Tested by

no test coverage detected