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

Method complete

packages/sql/pg/src/PgConnection.ts:1769–1777  ·  view source on GitHub ↗
(effect: Effect.Effect<QueryOutput, SqlError>)

Source from the content-addressed store, hash-verified

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}`)

Callers 10

onMessageMethod · 0.95
processRequestFunction · 0.45
Deferred.test.tsFile · 0.45
McpServerClass · 0.45
v2025_11_25.tsFile · 0.45
v2024_11_05.tsFile · 0.45
v2025_06_18.tsFile · 0.45
makeHandlersFunction · 0.45
v2025_03_26.tsFile · 0.45

Calls 1

finishMethod · 0.45

Tested by 1

processRequestFunction · 0.36