xxg-db-update
v1.0.1
Published
update to db by json object.be warning:tableName,columnName can not avoid SQL Injection attacks
Downloads
6
Readme
var db_update=require('xxg-db-update');
var updateTest=db_update(pool,'id');//mysql pool id主键名字,默认为'id'
var promise=updateTest(tableName,data);
promise.then(result=>...);
promise.error(error=>...);