MCPcopy
hub / github.com/Effect-TS/effect / layer

Function layer

packages/sql-sqlite-react-native/src/SqliteClient.ts:213–221  ·  view source on GitHub ↗
(
  config: SqliteClientConfig
)

Source from the content-addressed store, hash-verified

211 * @since 1.0.0
212 */
213export const layer = (
214 config: SqliteClientConfig
215): Layer.Layer<SqliteClient | Client.SqlClient, ConfigError> =>
216 Layer.scopedContext(
217 Effect.map(make(config), (client) =>
218 Context.make(SqliteClient, client).pipe(
219 Context.add(Client.SqlClient, client)
220 ))
221 ).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

Used in the wild real call sites across dependent graphs

searching dependent graphs…