This commit is contained in:
Mann Patel
2025-04-17 14:10:18 -06:00
parent e5493ad59f
commit d1aed0602d
4 changed files with 6 additions and 9 deletions

View File

@@ -1,11 +1,9 @@
const mysql = require("mysql2");
//Create a pool of connections to allow multiple query happen at the same time
const pool = mysql.createPool({
host: "localhost",
user: "root",
database: "Marketplace",
});
//Export a promise for promise-based query
module.exports = pool.promise();