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

Function layer

packages/sql/sqlite-do/src/SqliteClient.ts:372–380  ·  view source on GitHub ↗
(
  config: SqliteClientConfig
)

Source from the content-addressed store, hash-verified

370 * @since 4.0.0
371 */
372export const layer = (
373 config: SqliteClientConfig
374): Layer.Layer<SqliteClient | Client.SqlClient> =>
375 Layer.effectContext(
376 Effect.map(make(config), (client) =>
377 Context.make(SqliteClient, client).pipe(
378 Context.add(Client.SqlClient, client)
379 ))
380 ).pipe(Layer.provide(Reactivity.layer))

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected