express-myconnection icon indicating copy to clipboard operation
express-myconnection copied to clipboard

Connection in custom function

Open mastersoftwaresolutions opened this issue 10 years ago • 1 comments

How i can use this in my custom function :-1: function dbcheck() { getConnection(function (err, connection) { connection.query('SELECT *FROM users ', function (err, results) { if (err) return next(err); return results; }); }); }

mastersoftwaresolutions avatar Mar 04 '14 11:03 mastersoftwaresolutions

you should send the req, and res params

function dbcheck(req,res){}

teknosains avatar Oct 10 '14 06:10 teknosains