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

Function layer

packages/sql-sqlite-node/src/SqliteClient.ts:281–289  ·  view source on GitHub ↗
(
  config: SqliteClientConfig
)

Source from the content-addressed store, hash-verified

279 * @since 1.0.0
280 */
281export const layer = (
282 config: SqliteClientConfig
283): Layer.Layer<SqliteClient | Client.SqlClient, ConfigError> =>
284 Layer.scopedContext(
285 Effect.map(make(config), (client) =>
286 Context.make(SqliteClient, client).pipe(
287 Context.add(Client.SqlClient, client)
288 ))
289 ).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.65

Tested by

no test coverage detected