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

Function makeFailingClient

packages/sql/pg/test/SqlErrorClassification.test.ts:35–40  ·  view source on GitHub ↗
(cause: unknown)

Source from the content-addressed store, hash-verified

33})
34
35const makeFailingClient = (cause: unknown) => ({
36 once: () => undefined,
37 off: () => undefined,
38 release: () => undefined,
39 query: (_sql: string, _params: ReadonlyArray<unknown>, cb: (cause: unknown) => void) => cb(cause)
40})
41
42describe("PgClient SqlError classification", () => {
43 it.effect("checks 42501 before generic 42*", () =>

Callers 1

makeFailingPoolFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected