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

Function makeFailingPool

packages/sql/pg/test/TransactionAcquire.test.ts:8–13  ·  view source on GitHub ↗
(cause: unknown)

Source from the content-addressed store, hash-verified

6type ConnectCb = (cause: unknown, client?: unknown, release?: (cause?: Error) => void) => void
7
8const makeFailingPool = (cause: unknown) => ({
9 options: {},
10 ending: false,
11 connect: (cb: ConnectCb) => cb(cause, undefined, () => undefined),
12 query: () => undefined
13})
14
15const makeMissingClientPool = () => ({
16 options: {},

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected