xxg-db-insert
v1.0.1
Published
insert to db by json object.be warning:tableName,columnName can not avoid SQL Injection attacks
Downloads
5
Readme
var db_insert=require('xxg-db-insert'); var insertTest=db_insert(pool);//mysql pool var promise=insertTest(tableName,data); promise.then(result=>...); promise.error(error=>...);