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

Function skippedWhileDraining

packages/sql/pg/src/PgConnection.ts:1639–1641  ·  view source on GitHub ↗
(message: PgProtocol.BackendMessage<unknown>)

Source from the content-addressed store, hash-verified

1637 * is kept even over a later `ErrorResponse`.
1638 */
1639const skippedWhileDraining = (message: PgProtocol.BackendMessage<unknown>): boolean =>
1640 message._tag === "DataRow" || message._tag === "CommandComplete" || message._tag === "EmptyQueryResponse" ||
1641 message._tag === "ErrorResponse"
1642
1643/** Backend messages that open each subsequent statement in a batch. */
1644const opensStatement = (message: PgProtocol.BackendMessage<unknown>): boolean =>

Callers 2

onMessageMethod · 0.85
onMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected