()
| 135 | * Close database connection pool |
| 136 | */ |
| 137 | export 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 |
no outgoing calls
no test coverage detected