MCPcopy Create free account
hub / github.com/denodrivers/postgres / closeConnection

Function closeConnection

client.ts:92–98  ·  view source on GitHub ↗

* Close the connection to the database

()

Source from the content-addressed store, hash-verified

90 * Close the connection to the database
91 */
92 protected async closeConnection() {
93 if (this.connected) {
94 await this.#connection.end();
95 }
96
97 this.resetSessionMetadata();
98 }
99
100 /**
101 * Transactions are a powerful feature that guarantees safe operations by allowing you to control

Callers

nothing calls this directly

Calls 1

endMethod · 0.45

Tested by

no test coverage detected