xxg-db
v1.0.3
Published
db has db.update,db.destroy,db.insert,db.query
Downloads
2
Readme
//primaryKey default 'id' var db=require('xxg-db')(pool[,primaryKey]);//mysql pool
db.insert('tableName',{id:1}); db.update('tableName',{id:1,name:'ee'}); db.destroy('tableName',{id:1}); db.destroy('tableName','id=1');