(onDrained: () => void)
| 1758 | } |
| 1759 | |
| 1760 | abort(onDrained: () => void): void { |
| 1761 | if (this.done) return onDrained() |
| 1762 | this.aborted = true |
| 1763 | this.drainDone = onDrained |
| 1764 | // Draining skips later `RowDescription`s, so don't decode their rows |
| 1765 | // with this statement's reader. |
| 1766 | this.conn.session.parser.readField = undefined |
| 1767 | } |
| 1768 | |
| 1769 | private complete(effect: Effect.Effect<QueryOutput, SqlError>): void { |
| 1770 | if (this.done) return |