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

Function runValues

packages/sql-d1/src/D1Client.ts:122–139  ·  view source on GitHub ↗
(
        sql: string,
        params: ReadonlyArray<unknown>
      )

Source from the content-addressed store, hash-verified

120 ) => runRaw(sql, params)
121
122 const runValues = (
123 sql: string,
124 params: ReadonlyArray<unknown>
125 ) =>
126 Effect.flatMap(
127 prepareCache.get(sql),
128 (statement) =>
129 Effect.tryPromise({
130 try: () => {
131 return statement.bind(...params).raw() as Promise<
132 ReadonlyArray<
133 ReadonlyArray<unknown>
134 >
135 >
136 },
137 catch: (cause) => new SqlError({ cause, message: `Failed to execute statement` })
138 })
139 )
140
141 return identity<Connection>({
142 execute(sql, params, transformRows) {

Callers 1

executeValuesFunction · 0.70

Calls 2

rawMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…