MCPcopy Index your code
hub / github.com/Effect-TS/effect / layerConfig

Function layerConfig

packages/sql-sqlite-wasm/src/SqliteClient.ts:498–510  ·  view source on GitHub ↗
(
  config: Config.Config.Wrap<SqliteClientConfig>
)

Source from the content-addressed store, hash-verified

496 * @since 1.0.0
497 */
498export const layerConfig = (
499 config: Config.Config.Wrap<SqliteClientConfig>
500): Layer.Layer<SqliteClient | Client.SqlClient, ConfigError | SqlError> =>
501 Layer.scopedContext(
502 Config.unwrap(config).pipe(
503 Effect.flatMap(make),
504 Effect.map((client) =>
505 Context.make(SqliteClient, client).pipe(
506 Context.add(Client.SqlClient, client)
507 )
508 )
509 )
510 ).pipe(Layer.provide(Reactivity.layer))

Callers

nothing calls this directly

Calls 5

pipeMethod · 0.65
mapMethod · 0.65
makeMethod · 0.65
addMethod · 0.65
provideMethod · 0.65

Tested by

no test coverage detected