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

Method executeRaw

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

Source from the content-addressed store, hash-verified

316 : this.run("execute", sql, params)
317 }
318 executeRaw(sql: string, params: ReadonlyArray<unknown>) {
319 return Effect.tryPromise({
320 try: () => this.pglite.query<any>(sql, params as Array<any>),
321 catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to execute statement", "executeRaw") })
322 })
323 }
324 executeValues(sql: string, params: ReadonlyArray<unknown>) {
325 return Effect.map(
326 Effect.tryPromise({

Callers

nothing calls this directly

Calls 2

classifyErrorFunction · 0.70
queryMethod · 0.65

Tested by

no test coverage detected