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

Function query

packages/sql/pg/test/Client.integration.test.ts:464–469  ·  view source on GitHub ↗
(sql: string, _params: ReadonlyArray<unknown>, callback: (error: null, result: unknown) => void)

Source from the content-addressed store, hash-verified

462 on() {},
463 off() {},
464 query(sql: string, _params: ReadonlyArray<unknown>, callback: (error: null, result: unknown) => void) {
465 if (sql === "BEGIN" && ++beginCalls === 2) {
466 Deferred.doneUnsafe(secondBegin, Effect.void)
467 }
468 callback(null, { rows: [] })
469 }
470 }
471
472 const sql = yield* PgClient.fromClient({

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected