Clean up the global database connection
Closes the mssql ConnectionPool if it exists and is connected. Should be called when the CLI command completes to ensure proper cleanup.
Promise that resolves when cleanup is complete
try { // Do work with database} finally { await cleanupProvider();} Copy
try { // Do work with database} finally { await cleanupProvider();}
Clean up the global database connection
Closes the mssql ConnectionPool if it exists and is connected. Should be called when the CLI command completes to ensure proper cleanup.