1.0.0 • Published 4 years ago

mysql-pool-lib v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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();