mysql-helper-simple
this is a mysql helper simple plug-in
Github: https://github.com/lienren/mysql-helper
Installation
$ npm install mysql-helper-simple
Examples
Before running the examples ensure you have mysql-helper-simple installed and enabled at the top of your script:
const sqlhelper = require;
other config
Query
var sql = "select * from users";sqlhelper.query.then;
Create
var sql = "insert into users (uname) values ('lienren')";sqlhelper.create.then;
Update
var sql = "update users set name = 'hello lienren' where id = 1";sqlhelper.update.then;
Batch Execute
var sql0 = "select * from users";var sql1 = "...";sqlhelper.batch.then;
Squel
SupportBefore running the examples ensure you have squel installed and enabled at the top of your script:
var squel = require;
Query
var sql = sqlhelper.query.then;
License
MIT - see LICENSE.md