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

Method evict

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

* Drops a statement the backend no longer holds, or whose plan went stale. * * The name is closed either way. A plan that went stale is still held under * it, and re-parsing would collide; a name the backend has already lost * ignores the `Close`, which Postgres treats as a success.

(prepared: Prepared)

Source from the content-addressed store, hash-verified

1536 * ignores the `Close`, which Postgres treats as a success.
1537 */
1538 evict(prepared: Prepared): void {
1539 if (prepared.parsing) return
1540 if (this.statements.delete(prepared.key) && prepared.ready) this.close(prepared.name)
1541 }
1542
1543 /**
1544 * Drops a statement whose parsing cycle failed before its columns arrived.

Callers 2

retryStaleFunction · 0.80
onMessageMethod · 0.80

Calls 2

closeMethod · 0.95
deleteMethod · 0.65

Tested by

no test coverage detected