MCPcopy Index your code
hub / github.com/Effect-TS/effect / layer

Function layer

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

Source from the content-addressed store, hash-verified

220 * @since 1.0.0
221 */
222export const layer = (
223 config: SqliteClientConfig
224): Layer.Layer<SqliteClient | Client.SqlClient, ConfigError> =>
225 Layer.scopedContext(
226 Effect.map(make(config), (client) =>
227 Context.make(SqliteClient, client).pipe(
228 Context.add(Client.SqlClient, client)
229 ))
230 ).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…