MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / closeAll

Function closeAll

src/utils/sqlite.ts:23–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23export function closeAll(): void {
24 for (const db of connections.values()) {
25 try {
26 db.close();
27 } catch (err) {
28 // Cleanup path — keep closing the rest, but surface DB-locked/corruption signals.
29 logger.debug('sqlite close failed', { err });
30 }
31 }
32 connections.clear();
33}

Callers

nothing calls this directly

Calls 2

debugMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected