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

Method executeValues

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

Source from the content-addressed store, hash-verified

322 })
323 }
324 executeValues(sql: string, params: ReadonlyArray<unknown>) {
325 return Effect.map(
326 Effect.tryPromise({
327 try: () => this.pglite.query<any>(sql, params as Array<any>, { rowMode: "array" }),
328 catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to execute statement", "executeValues") })
329 }),
330 (result) => result.rows as ReadonlyArray<ReadonlyArray<any>>
331 )
332 }
333 executeValuesUnprepared(sql: string, params: ReadonlyArray<unknown>) {
334 return Effect.map(
335 Effect.tryPromise({

Callers

nothing calls this directly

Calls 3

classifyErrorFunction · 0.70
queryMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected