Rashi Project
Rashi Project
await executeQuery(dropTable1Query);
// Close the pool (optional, usually done when the application is shutting down)
pool.end((error) => {
if (error) {
console.error('Error closing the connection pool:', error);
} else {
console.log('Connection pool closed.');
}
});
} catch (err) {
console.error('Error performing database setup:', err);
}
}
setupDatabase();