@quillsql/node 0.6.1 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/db/Mysql.js +1 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/src/db/Mysql.ts +1 -1
- package/src/index.ts +2 -0
package/dist/db/Mysql.js
CHANGED
|
@@ -29,7 +29,7 @@ function formatMysqlConfig(connectionString) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.formatMysqlConfig = formatMysqlConfig;
|
|
31
31
|
function connectToMysql(config) {
|
|
32
|
-
const pool = mysql2_1.default.createPool(Object.assign(Object.assign({}, config), { waitForConnections: true, connectionLimit:
|
|
32
|
+
const pool = mysql2_1.default.createPool(Object.assign(Object.assign({}, config), { waitForConnections: true, connectionLimit: 24, queueLimit: 0 }));
|
|
33
33
|
return pool;
|
|
34
34
|
}
|
|
35
35
|
exports.connectToMysql = connectToMysql;
|
package/dist/index.js
CHANGED
|
@@ -245,6 +245,7 @@ const requireQuill = ({ privateKey, databaseConnectionString, databaseConfig, ca
|
|
|
245
245
|
module.exports = requireQuill;
|
|
246
246
|
module.exports.default = requireQuill;
|
|
247
247
|
module.exports.withConnection = DatabaseHelper_1.withConnection;
|
|
248
|
+
module.exports.connectToDatabase = DatabaseHelper_1.connectToDatabase;
|
|
248
249
|
module.exports.connectAndRunQuery = DatabaseHelper_1.connectAndRunQuery;
|
|
249
250
|
module.exports.Quill = Quill;
|
|
250
251
|
module.exports.getTablesBySchemaByDatabase = DatabaseHelper_1.getTablesBySchemaByDatabase;
|
package/package.json
CHANGED
package/src/db/Mysql.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ import axios from "axios";
|
|
|
9
9
|
import "dotenv/config";
|
|
10
10
|
import { mapQueries, removeFields } from "./utils/RunQueryProcesses";
|
|
11
11
|
import {
|
|
12
|
+
connectToDatabase,
|
|
12
13
|
connectAndRunQuery,
|
|
13
14
|
getColumnInfoBySchemaByDatabase,
|
|
14
15
|
getColumnsByTableByDatabase,
|
|
@@ -360,6 +361,7 @@ const requireQuill = ({
|
|
|
360
361
|
module.exports = requireQuill;
|
|
361
362
|
module.exports.default = requireQuill;
|
|
362
363
|
module.exports.withConnection = withConnection;
|
|
364
|
+
module.exports.connectToDatabase = connectToDatabase;
|
|
363
365
|
module.exports.connectAndRunQuery = connectAndRunQuery;
|
|
364
366
|
module.exports.Quill = Quill;
|
|
365
367
|
module.exports.getTablesBySchemaByDatabase = getTablesBySchemaByDatabase;
|