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

Function layer

repos/effect/packages/sql/sqlite-react-native/src/SqliteClient.ts:253–261  ·  view source on GitHub ↗
(
  config: SqliteClientConfig
)

Source from the content-addressed store, hash-verified

251 Config.unwrap(config).pipe(
252 Effect.flatMap(make),
253 Effect.map((client) =>
254 Context.make(SqliteClient, client).pipe(
255 Context.add(Client.SqlClient, client)
256 )
257 )
258 )
259 ).pipe(Layer.provide(Reactivity.layer))
260
261/**
262 * Builds a layer from a React Native SQLite client configuration, providing both `SqliteClient` and the generic `SqlClient` service.
263 *
264 * @category layers

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…