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

Method executeValues

packages/sql/pglite/src/PgliteClient.ts:302–310  ·  view source on GitHub ↗
(sql: string, params: ReadonlyArray<unknown>)

Source from the content-addressed store, hash-verified

300 })
301 }
302 executeValues(sql: string, params: ReadonlyArray<unknown>) {
303 return Effect.map(
304 Effect.tryPromise({
305 try: () => this.pglite.query<any>(sql, params as Array<any>, { rowMode: "array" }),
306 catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to execute statement", "executeValues") })
307 }),
308 (result) => result.rows as ReadonlyArray<ReadonlyArray<any>>
309 )
310 }
311 executeValuesUnprepared(sql: string, params: ReadonlyArray<unknown>) {
312 return Effect.map(
313 Effect.tryPromise({

Callers

nothing calls this directly

Calls 2

classifyErrorFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected