@oino-ts/db-postgresql 0.17.4 → 0.18.1
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.
|
@@ -233,7 +233,7 @@ class OINODbPostgresql extends db_1.OINODb {
|
|
|
233
233
|
}
|
|
234
234
|
catch (e) {
|
|
235
235
|
result.setError(500, "Exception connecting to database: " + e.message, "OINODbPostgresql.connect");
|
|
236
|
-
db_1.OINOLog.exception("@oino-ts/db-postgresql", "
|
|
236
|
+
db_1.OINOLog.exception("@oino-ts/db-postgresql", "OINODbPostgresql", "connect", "exception in connect", { message: e.message, stack: e.stack });
|
|
237
237
|
}
|
|
238
238
|
return result;
|
|
239
239
|
}
|
|
@@ -262,7 +262,7 @@ class OINODbPostgresql extends db_1.OINODb {
|
|
|
262
262
|
}
|
|
263
263
|
catch (e) {
|
|
264
264
|
result.setError(500, "Exception validating connection: " + e.message, "OINODbPostgresql.validate");
|
|
265
|
-
db_1.OINOLog.exception("@oino-ts/db-postgresql", "
|
|
265
|
+
db_1.OINOLog.exception("@oino-ts/db-postgresql", "OINODbPostgresql", "validate", "exception in validate", { message: e.message, stack: e.stack });
|
|
266
266
|
}
|
|
267
267
|
db_1.OINOBenchmark.endMetric("OINODb", "validate");
|
|
268
268
|
return result;
|
|
@@ -230,7 +230,7 @@ export class OINODbPostgresql extends OINODb {
|
|
|
230
230
|
}
|
|
231
231
|
catch (e) {
|
|
232
232
|
result.setError(500, "Exception connecting to database: " + e.message, "OINODbPostgresql.connect");
|
|
233
|
-
OINOLog.exception("@oino-ts/db-postgresql", "
|
|
233
|
+
OINOLog.exception("@oino-ts/db-postgresql", "OINODbPostgresql", "connect", "exception in connect", { message: e.message, stack: e.stack });
|
|
234
234
|
}
|
|
235
235
|
return result;
|
|
236
236
|
}
|
|
@@ -259,7 +259,7 @@ export class OINODbPostgresql extends OINODb {
|
|
|
259
259
|
}
|
|
260
260
|
catch (e) {
|
|
261
261
|
result.setError(500, "Exception validating connection: " + e.message, "OINODbPostgresql.validate");
|
|
262
|
-
OINOLog.exception("@oino-ts/db-postgresql", "
|
|
262
|
+
OINOLog.exception("@oino-ts/db-postgresql", "OINODbPostgresql", "validate", "exception in validate", { message: e.message, stack: e.stack });
|
|
263
263
|
}
|
|
264
264
|
OINOBenchmark.endMetric("OINODb", "validate");
|
|
265
265
|
return result;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oino-ts/db-postgresql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "OINO TS package for using Postgresql databases.",
|
|
5
5
|
"author": "Matias Kiviniemi (pragmatta)",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"module": "./dist/esm/index.js",
|
|
21
21
|
"types": "./dist/types/index.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@oino-ts/db": "0.
|
|
23
|
+
"@oino-ts/db": "0.18.1",
|
|
24
24
|
"pg": "^8.11.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
package/src/OINODbPostgresql.ts
CHANGED
|
@@ -249,7 +249,7 @@ export class OINODbPostgresql extends OINODb {
|
|
|
249
249
|
|
|
250
250
|
} catch (e:any) {
|
|
251
251
|
result.setError(500, "Exception connecting to database: " + e.message, "OINODbPostgresql.connect")
|
|
252
|
-
OINOLog.exception("@oino-ts/db-postgresql", "
|
|
252
|
+
OINOLog.exception("@oino-ts/db-postgresql", "OINODbPostgresql", "connect", "exception in connect", {message:e.message, stack:e.stack})
|
|
253
253
|
}
|
|
254
254
|
return result
|
|
255
255
|
}
|
|
@@ -278,7 +278,7 @@ export class OINODbPostgresql extends OINODb {
|
|
|
278
278
|
}
|
|
279
279
|
} catch (e:any) {
|
|
280
280
|
result.setError(500, "Exception validating connection: " + e.message, "OINODbPostgresql.validate")
|
|
281
|
-
OINOLog.exception("@oino-ts/db-postgresql", "
|
|
281
|
+
OINOLog.exception("@oino-ts/db-postgresql", "OINODbPostgresql", "validate", "exception in validate", {message:e.message, stack:e.stack})
|
|
282
282
|
}
|
|
283
283
|
OINOBenchmark.endMetric("OINODb", "validate")
|
|
284
284
|
return result
|