pool-sql
v1.0.11
Published
wrap node mysql to make more reliable connections using pools
Downloads
10
Readme
pool-sql
wrap node mysql to make more reliable connections using pools
var index = require("./pool-sql.js");
var fs = require("fs");
var config = JSON.parse(fs.readFileSync("./config.json","utf8"));
var pool = new index({"host":config.host,"username":config.username,"password":config.password});
var mysqlCommand = pool.mysqlCommand;
mysqlCommand("select * from db.table where something=true;",function(err,res,fields){
//not sure what fields are
if(typeof err="undefined")console.log(err);
else{
}
});