@oino-ts/db-mariadb 0.21.0 → 0.21.2
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.
|
@@ -363,7 +363,7 @@ class OINODbMariadb extends db_1.OINODb {
|
|
|
363
363
|
}
|
|
364
364
|
common_1.OINOBenchmark.startMetric("OINODb", "sqlExec");
|
|
365
365
|
let result = await this._exec(sql);
|
|
366
|
-
common_1.OINOBenchmark.endMetric("OINODb", "sqlExec");
|
|
366
|
+
common_1.OINOBenchmark.endMetric("OINODb", "sqlExec", result.status != 500);
|
|
367
367
|
return result;
|
|
368
368
|
}
|
|
369
369
|
_getSchemaSql(dbName, tableName) {
|
|
@@ -360,7 +360,7 @@ export class OINODbMariadb extends OINODb {
|
|
|
360
360
|
}
|
|
361
361
|
OINOBenchmark.startMetric("OINODb", "sqlExec");
|
|
362
362
|
let result = await this._exec(sql);
|
|
363
|
-
OINOBenchmark.endMetric("OINODb", "sqlExec");
|
|
363
|
+
OINOBenchmark.endMetric("OINODb", "sqlExec", result.status != 500);
|
|
364
364
|
return result;
|
|
365
365
|
}
|
|
366
366
|
_getSchemaSql(dbName, tableName) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oino-ts/db-mariadb",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
4
4
|
"description": "OINO TS package for using Mariadb databases.",
|
|
5
5
|
"author": "Matias Kiviniemi (pragmatta)",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"module": "./dist/esm/index.js",
|
|
22
22
|
"types": "./dist/types/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@oino-ts/common": "^0.21.
|
|
25
|
-
"@oino-ts/db": "^0.21.
|
|
24
|
+
"@oino-ts/common": "^0.21.2",
|
|
25
|
+
"@oino-ts/db": "^0.21.2",
|
|
26
26
|
"mariadb": "^3.2.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
package/src/OINODbMariadb.ts
CHANGED
|
@@ -382,7 +382,7 @@ export class OINODbMariadb extends OINODb {
|
|
|
382
382
|
}
|
|
383
383
|
OINOBenchmark.startMetric("OINODb", "sqlExec")
|
|
384
384
|
let result:OINODbDataSet = await this._exec(sql)
|
|
385
|
-
OINOBenchmark.endMetric("OINODb", "sqlExec")
|
|
385
|
+
OINOBenchmark.endMetric("OINODb", "sqlExec", result.status != 500)
|
|
386
386
|
return result
|
|
387
387
|
}
|
|
388
388
|
|