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

Method abort

packages/sql/pg/src/PgConnection.ts:1760–1767  ·  view source on GitHub ↗
(onDrained: () => void)

Source from the content-addressed store, hash-verified

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

Callers 1

runQueryFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected