sql-process
v1.0.4
Published
quick connect your mysql with pool
Downloads
1
Readme
SqlProcess - quick connect your mysql with pool
Copyright 2020 JackYue. All rights reserved.
Install
npm install sql-process
Usage
SqlProcess = require("sql-process");
s = new SqlProcess({
queueLimit: 5,
connectionLimit: 20,
host: 'localhost',
port: '3306',
user: 'root',
password: 'root1234',
database: 'test',
}); // Create a sqlProcess
s.query('select now()').then().catch();
s.transactionExecutor({sql, sqlParam}, {sql, sqkParam}).then().catch();