MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / close

Function close

packages/sql/src/AbstractSqlConnection.ts:92–97  ·  view source on GitHub ↗

* @inheritDoc

(force?: boolean)

Source from the content-addressed store, hash-verified

90 * @inheritDoc
91 */
92 override async close(force?: boolean): Promise<void> {
93 await super.close(force);
94 await this.#client?.destroy();
95 this.connected = false;
96 this.#client = undefined;
97 }
98
99 /**
100 * @inheritDoc

Callers

nothing calls this directly

Calls 2

closeMethod · 0.65
destroyMethod · 0.45

Tested by

no test coverage detected