xxg-db-delete
v1.0.0
Published
delete to db by json object.be warning:can not avoid SQL Injection attacks
Downloads
3
Readme
var db_delete=require('xxg-db-delete');//id主键名字,默认为'id'
var deleteTest=db_delete(pool,'id');//mysql pool
var promise=deleteTest(tableName,{id:1});// 'id>10'
promise.then(result=>...);
promise.error(error=>...);