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

Method onDecodeFailure

packages/sql/pg/src/PgConnection.ts:1794–1801  ·  view source on GitHub ↗
(error: SqlError)

Source from the content-addressed store, hash-verified

1792 }
1793
1794 onDecodeFailure(error: SqlError): void {
1795 if (this.done || this.aborted || this.phase === "drain") return
1796 if (this.phase !== "rows") return this.failDesync(`Unexpected DataRow during ${this.phase}`)
1797 this.failure = error
1798 this.phase = "drain"
1799 // The rest of the result is discarded, so skip decoding it.
1800 this.conn.session.parser.readField = undefined
1801 }
1802
1803 onMessage(message: PgProtocol.BackendMessage<unknown>): void {
1804 if (this.aborted) {

Callers 1

PgConnectionImplClass · 0.80

Calls 1

failDesyncMethod · 0.95

Tested by

no test coverage detected