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

Function makeFailingPool

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

Source from the content-addressed store, hash-verified

26}
27
28const makeFailingPool = (cause: unknown) => ({
29 options: {},
30 ending: false,
31 connect: (cb: (cause: unknown, client: any) => void) => cb(null, makeFailingClient(cause)),
32 query: () => undefined
33})
34
35const makeFailingClient = (cause: unknown) => ({
36 once: () => undefined,

Callers 1

queryFailureReasonFunction · 0.70

Calls 1

makeFailingClientFunction · 0.70

Tested by

no test coverage detected