MCPcopy Create free account
hub / github.com/anomalyco/opencode / layer

Function layer

packages/effect-sqlite-node/src/index.ts:163–168  ·  view source on GitHub ↗
(config: SqliteClientConfig)

Source from the content-addressed store, hash-verified

161 })
162
163export const layer = (config: SqliteClientConfig): Layer.Layer<SqliteClient | Client.SqlClient> =>
164 Layer.effectContext(
165 Effect.map(make(config), (client) =>
166 Context.make(SqliteClient, client).pipe(Context.add(Client.SqlClient, client)),
167 ),
168 ).pipe(Layer.provide(Reactivity.layer))

Callers

nothing calls this directly

Calls 3

makeFunction · 0.70
addMethod · 0.65
makeMethod · 0.45

Tested by

no test coverage detected