(error: SqlError)
| 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 |