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

Method evictFailed

packages/sql/pg/src/PgConnection.ts:1551–1554  ·  view source on GitHub ↗

* Drops a statement whose parsing cycle failed before its columns arrived. * * A `Parse` that completed before the error outlives the failed cycle, so * the backend may hold the name while the entry can never become ready. The * name is closed either way: closing one the backend never re

(prepared: Prepared)

Source from the content-addressed store, hash-verified

1549 * no-op.
1550 */
1551 evictFailed(prepared: Prepared): void {
1552 this.statements.delete(prepared.key)
1553 this.close(prepared.name)
1554 }
1555
1556 private close(name: string): void {
1557 ;(this.closes ??= []).push(PgProtocol.encodeClose({ target: "statement", name }))

Callers 1

onMessageMethod · 0.80

Calls 2

closeMethod · 0.95
deleteMethod · 0.65

Tested by

no test coverage detected