We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Add a third parameter to your db.query callback. e.g.
exports.runQuery = function(sql, cb) { // Get a free pool pool.get(function(err, db) { if (err) ut.logError(err); else { db.query(sql, function(err, rs, meta) { console.log(err); db.detach(); // IMPORTANT: release the pool db cb(err, rs, meta); }); } }); pool.destroy(); };