right now in each User.js and Wallet.js I am including database.js which looks like this:
var mysql = require('mysql2/promise')
var pool = mysql.createPool({
connectionLimit: 10,
host: 'localhost',
user: 'x',
password: 'x',
database: 'x'
});
pool.getConnection((err, connection) => {
if (err) {
if (err.code...
Code (markup):
from JavaScript https://ift.tt/2Uinr9I
via IFTTT
0 Comments