Updates
This commit is contained in:
parent
03abe33d22
commit
e8787a2ef8
@ -23,7 +23,7 @@ function grabDSQLConnection(param) {
|
|||||||
const config = Object.assign({ host: process.env.DSQL_DB_HOST, user: process.env.DSQL_DB_USERNAME, password: process.env.DSQL_DB_PASSWORD, database: (param === null || param === void 0 ? void 0 : param.database) ||
|
const config = Object.assign({ host: process.env.DSQL_DB_HOST, user: process.env.DSQL_DB_USERNAME, password: process.env.DSQL_DB_PASSWORD, database: (param === null || param === void 0 ? void 0 : param.database) ||
|
||||||
((param === null || param === void 0 ? void 0 : param.noDb) ? undefined : process.env.DSQL_DB_NAME), port: process.env.DSQL_DB_PORT
|
((param === null || param === void 0 ? void 0 : param.noDb) ? undefined : process.env.DSQL_DB_NAME), port: process.env.DSQL_DB_PORT
|
||||||
? Number(process.env.DSQL_DB_PORT)
|
? Number(process.env.DSQL_DB_PORT)
|
||||||
: undefined, charset: "utf8mb4", ssl: (0, grabDbSSL_1.default)(), bigIntAsNumber: true, supportBigNumbers: true, bigNumberStrings: false, dateStrings: true, metaAsArray: true }, param === null || param === void 0 ? void 0 : param.config);
|
: undefined, charset: "utf8mb4", ssl: (0, grabDbSSL_1.default)(), bigIntAsNumber: true, supportBigNumbers: true, bigNumberStrings: false, dateStrings: true, metaAsArray: true, socketTimeout: 5000, connectTimeout: 5000, compress: true }, param === null || param === void 0 ? void 0 : param.config);
|
||||||
try {
|
try {
|
||||||
return yield mariadb_1.default.createConnection(config);
|
return yield mariadb_1.default.createConnection(config);
|
||||||
}
|
}
|
||||||
|
@ -39,6 +39,9 @@ export default async function grabDSQLConnection(
|
|||||||
bigNumberStrings: false,
|
bigNumberStrings: false,
|
||||||
dateStrings: true,
|
dateStrings: true,
|
||||||
metaAsArray: true,
|
metaAsArray: true,
|
||||||
|
socketTimeout: 5000,
|
||||||
|
connectTimeout: 5000,
|
||||||
|
compress: true,
|
||||||
...param?.config,
|
...param?.config,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@moduletrace/datasquirel",
|
"name": "@moduletrace/datasquirel",
|
||||||
"version": "4.9.2",
|
"version": "4.9.3",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
Loading…
Reference in New Issue
Block a user