MySql - Node

Card Puncher Data Processing

Library

MySql

before 8.0: mysql

Tip:

promise with mysql example

return new Promise(function(resolve, reject) {
     // Async call
     connection.query(
         'SELECT * FROM `books` WHERE `author` = "David"', 
         function (error, results, fields){
            if (error) {
                reject(error);
            } else {
                resolve(results);
            }
     })
})

mySql-connector-nodejs







Share this page:
Follow us:
Task Runner