MCPcopy Create free account
hub / github.com/effect-app/libs / layer

Function layer

repos/effect/packages/sql/sqlite-wasm/src/SqliteClient.ts:529–537  ·  view source on GitHub ↗
(
  config: SqliteClientConfig
)

Source from the content-addressed store, hash-verified

527 ).pipe(Layer.provide(Reactivity.layer))
528
529/**
530 * Builds a layer from a worker-backed SQLite WASM client configuration, providing both `SqliteClient` and the generic `SqlClient` service.
531 *
532 * @category layers
533 * @since 4.0.0
534 */
535export const layer = (
536 config: SqliteClientConfig
537): Layer.Layer<SqliteClient | Client.SqlClient, SqlError> =>
538 Layer.effectContext(
539 Effect.map(make(config), (client) =>
540 Context.make(SqliteClient, client).pipe(

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…