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

Function queryError

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

Source from the content-addressed store, hash-verified

1596 )
1597
1598const queryError = (cause: unknown, message: string): SqlError =>
1599 new SqlError({ reason: new UnknownError({ cause, message, operation: "query" }) })
1600
1601/**
1602 * Retries a cycle whose named statement the backend no longer honors: the

Callers 4

PgConnectionImplClass · 0.85
onMessageMethod · 0.85
streamRowsFunction · 0.85
onMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected