1.0.4 • Published 4 years ago

sql-process v1.0.4

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

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

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago