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

Function layer

packages/sql-sqlite-wasm/src/SqliteClient.ts:484–492  ·  view source on GitHub ↗
(
  config: SqliteClientConfig
)

Source from the content-addressed store, hash-verified

482 * @since 1.0.0
483 */
484export const layer = (
485 config: SqliteClientConfig
486): Layer.Layer<SqliteClient | Client.SqlClient, ConfigError | SqlError> =>
487 Layer.scopedContext(
488 Effect.map(make(config), (client) =>
489 Context.make(SqliteClient, client).pipe(
490 Context.add(Client.SqlClient, client)
491 ))
492 ).pipe(Layer.provide(Reactivity.layer))
493
494/**
495 * @category layers

Callers

nothing calls this directly

Calls 6

makeFunction · 0.70
pipeMethod · 0.65
mapMethod · 0.65
makeMethod · 0.65
addMethod · 0.65
provideMethod · 0.65

Tested by

no test coverage detected