1.0.0 • Published 4 years ago
mysql-pool-lib v1.0.0
Description
quick connect your mysql with pool
Install
npm install mysql-pool-lib
Usage
mysqlLib = require("mysql-pool-lib");
// Init a mysqlLib
m = new mysqlLib({
queueLimit: 5,
connectionLimit: 20,
host: 'localhost',
port: '3306',
user: 'root',
password: 'root1234',
database: 'test',
});
m.query('select now()').then().catch();
m.transactionExecutor({sql, sqlParam}, {sql, sqkParam}).then().catch();
1.0.0
4 years ago