| 1767 | } |
| 1768 | |
| 1769 | private complete(effect: Effect.Effect<QueryOutput, SqlError>): void { |
| 1770 | if (this.done) return |
| 1771 | this.done = true |
| 1772 | // Whether it parsed or not, this cycle no longer holds the name: success |
| 1773 | // has already marked it ready, failure leaves it to be parsed again. |
| 1774 | const prepared = this.plan.prepared |
| 1775 | if (prepared !== undefined) prepared.parsing = false |
| 1776 | this.finish(effect) |
| 1777 | } |
| 1778 | |
| 1779 | private failDesync(message: string): void { |
| 1780 | const error = connectionQueryError(new Error(message), `PgConnection: ${message}`) |