feat: refs #7811 Added new params in datasources.json #2898

Merged
guillermo merged 3 commits from 7811-datasourcesAddParams into dev 2024-09-02 10:02:15 +00:00
2 changed files with 8 additions and 1 deletions

View File

@ -342,6 +342,9 @@ exports.initialize = function initialize(dataSource, callback) {
}
};
// Code extracted from original Loopback MySQL connector
// since it cannot be reused, please try not to alter it.
// https://github.com/loopbackio/loopback-connector-mysql/blob/v6.2.0/lib/mysql.js
MySQL.prototype.connect = function(callback) {
const self = this;
const options = generateOptions(this.settings);

View File

@ -11,12 +11,16 @@
"port": "3306",
"username": "root",
"password": "root",
"connectionLimit": 100,
"queueLimit": 100,
"multipleStatements": true,
"legacyUtcDateProcessing": false,
"timezone": "local",
"connectTimeout": 40000,
"acquireTimeout": 90000,
"waitForConnections": true
"waitForConnections": true,
"maxIdleTime": 60000,
"idleTimeout": 60000
},
"osticket": {
"connector": "memory",