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

Function runCached

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

Source from the content-addressed store, hash-verified

110 ) => runStatement(db.prepare(sql), params)
111
112 const runCached = (
113 sql: string,
114 params: ReadonlyArray<unknown> = []
115 ) => Effect.flatMap(prepareCache.get(sql), (s) => runStatement(s, params))
116
117 const runUncached = (
118 sql: string,

Callers 1

executeFunction · 0.85

Calls 2

runStatementFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…