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

Function runStatement

packages/sql/d1/src/D1Client.ts:261–265  ·  view source on GitHub ↗
(
        statement: D1PreparedStatement,
        params: ReadonlyArray<unknown> = []
      )

Source from the content-addressed store, hash-verified

259 })
260
261 const runStatement = (
262 statement: D1PreparedStatement,
263 params: ReadonlyArray<unknown> = []
264 ): Effect.Effect<ReadonlyArray<any>, SqlError, never> =>
265 Effect.map(runStatementRaw(statement, params), (response) => response.results || [])
266
267 const runRaw = (
268 sql: string,

Callers 2

runCachedFunction · 0.70
runUncachedFunction · 0.70

Calls 2

runStatementRawFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected