Merge pull request 'feat: refs #7811 Added new params in datasources.json' (!2898) from 7811-datasourcesAddParams into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #2898 Reviewed-by: Juan Ferrer <juan@verdnatura.es>
This commit is contained in:
commit
9485434dc2
|
@ -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) {
|
MySQL.prototype.connect = function(callback) {
|
||||||
const self = this;
|
const self = this;
|
||||||
const options = generateOptions(this.settings);
|
const options = generateOptions(this.settings);
|
||||||
|
|
|
@ -11,12 +11,16 @@
|
||||||
"port": "3306",
|
"port": "3306",
|
||||||
"username": "root",
|
"username": "root",
|
||||||
"password": "root",
|
"password": "root",
|
||||||
|
"connectionLimit": 100,
|
||||||
|
"queueLimit": 100,
|
||||||
"multipleStatements": true,
|
"multipleStatements": true,
|
||||||
"legacyUtcDateProcessing": false,
|
"legacyUtcDateProcessing": false,
|
||||||
"timezone": "local",
|
"timezone": "local",
|
||||||
"connectTimeout": 40000,
|
"connectTimeout": 40000,
|
||||||
"acquireTimeout": 90000,
|
"acquireTimeout": 90000,
|
||||||
"waitForConnections": true
|
"waitForConnections": true,
|
||||||
|
"maxIdleTime": 60000,
|
||||||
|
"idleTimeout": 60000
|
||||||
},
|
},
|
||||||
"osticket": {
|
"osticket": {
|
||||||
"connector": "memory",
|
"connector": "memory",
|
||||||
|
|
Loading…
Reference in New Issue