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

Function connectionQueryError

packages/sql/pg/src/PgConnection.ts:1618–1619  ·  view source on GitHub ↗
(cause: unknown, message: string)

Source from the content-addressed store, hash-verified

1616 })
1617
1618const connectionQueryError = (cause: unknown, message: string): SqlError =>
1619 new SqlError({ reason: new ConnectionError({ cause, message, operation: "query" }) })
1620
1621const pinReleasedError = (): SqlError =>
1622 connectionQueryError(new Error("Pinned connection was released"), "PgConnection: Pinned connection was released")

Callers 9

PgConnectionImplClass · 0.85
pinReleasedErrorFunction · 0.85
unconfirmedCancelErrorFunction · 0.85
failDesyncMethod · 0.85
drainAbortedFunction · 0.85
runQueryFunction · 0.85
failDesyncFunction · 0.85
streamRowsFunction · 0.85
unlistenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected