MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / closeDatabase

Function closeDatabase

server/src/db/client.ts:137–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135 * Close database connection pool
136 */
137export async function closeDatabase(): Promise<void> {
138 if (pool) {
139 await pool.end();
140 pool = null;
141 console.log("Database connection pool closed");
142 }
143}
144
145/**
146 * Check if database is initialized

Calls

no outgoing calls

Tested by

no test coverage detected