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

Function onDecodeFailure

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

Source from the content-addressed store, hash-verified

2244 }
2245
2246 const onDecodeFailure = (error: SqlError): void => {
2247 if (done || aborted || phase === "drain") return
2248 if (phase !== "rows") return failDesync(`Unexpected DataRow during ${phase}`)
2249 failure = error
2250 phase = "drain"
2251 parser.readField = undefined
2252 }
2253
2254 const onBatchEnd = (): void => {
2255 if (done || aborted) return

Callers 1

makeFunction · 0.85

Calls 1

failDesyncFunction · 0.85

Tested by

no test coverage detected