MCPcopy Create free account
hub / github.com/Effect-TS/effect / runCached

Function runCached

packages/sql/d1/src/D1Client.ts:272–275  ·  view source on GitHub ↗
(
        sql: string,
        params: ReadonlyArray<unknown> = []
      )

Source from the content-addressed store, hash-verified

270 ) => Effect.flatMap(prepare(sql), (s) => runStatementRaw(s, params))
271
272 const runCached = (
273 sql: string,
274 params: ReadonlyArray<unknown> = []
275 ) => Effect.flatMap(Cache.get(prepareCache, sql), (s) => runStatement(s, params))
276
277 const runUncached = (
278 sql: string,

Callers 1

executeFunction · 0.85

Calls 2

runStatementFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected