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();
