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

Function layer

packages/sql/sqlite-bun/src/SqliteClient.ts:280–288  ·  view source on GitHub ↗
(
  config: SqliteClientConfig
)

Source from the content-addressed store, hash-verified

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