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

Method executeRaw

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

Source from the content-addressed store, hash-verified

294 : this.run("execute", sql, params)
295 }
296 executeRaw(sql: string, params: ReadonlyArray<unknown>) {
297 return Effect.tryPromise({
298 try: () => this.pglite.query<any>(sql, params as Array<any>),
299 catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to execute statement", "executeRaw") })
300 })
301 }
302 executeValues(sql: string, params: ReadonlyArray<unknown>) {
303 return Effect.map(
304 Effect.tryPromise({

Callers

nothing calls this directly

Calls 1

classifyErrorFunction · 0.70

Tested by

no test coverage detected