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

Function layer

repos/effect/packages/sql/sqlite-do/src/SqliteClient.ts:333–341  ·  view source on GitHub ↗
(
  config: SqliteClientConfig
)

Source from the content-addressed store, hash-verified

331 * @category layers
332 * @since 4.0.0
333 */
334export const layer = (
335 config: SqliteClientConfig
336): Layer.Layer<SqliteClient | Client.SqlClient> =>
337 Layer.effectContext(
338 Effect.map(make(config), (client) =>
339 Context.make(SqliteClient, client).pipe(
340 Context.add(Client.SqlClient, client)
341 ))
342 ).pipe(Layer.provide(Reactivity.layer))

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…