MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / localDbProviderLayer

Function localDbProviderLayer

apps/local/src/db/sqlite-fumadb.ts:132–137  ·  view source on GitHub ↗
(handle: SqliteFumaDb)

Source from the content-addressed store, hash-verified

130// is owned by the caller's acquireRelease, so this projection's `close` is a
131// no-op to avoid double-closing the connection.
132export const localDbProviderLayer = (handle: SqliteFumaDb): Layer.Layer<DbProvider> =>
133 Layer.succeed(DbProvider)({
134 db: handle.db,
135 fuma: handle.fuma,
136 close: async () => {},
137 } satisfies ExecutorDbHandle);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected