update
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user