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

Function closeConnection

src/tools/database/db-tools.ts:106–112  ·  view source on GitHub ↗
(c: any, dialect: Dialect)

Source from the content-addressed store, hash-verified

104}
105
106async function closeConnection(c: any, dialect: Dialect): Promise<void> {
107 try {
108 if (dialect === 'mysql') await c.end();
109 else if (dialect === 'postgres') await c.end();
110 else if (dialect === 'sqlite') c.close();
111 } catch { /* ignore */ }
112}
113
114// ─────────────────────────────────────────────────────────────────────────────
115// db_schema

Callers 2

executeMethod · 0.85
executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected