@oino-ts/db-mariadb 0.0.13 → 0.0.15

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.
@@ -266,7 +266,7 @@ class OINODbMariadb extends db_1.OINODb {
266
266
  *
267
267
  */
268
268
  async sqlSelect(sql) {
269
- db_1.OINOBenchmark.start("sqlSelect");
269
+ db_1.OINOBenchmark.start("OINODb", "sqlSelect");
270
270
  let result;
271
271
  try {
272
272
  const sql_res = await this._query(sql);
@@ -276,7 +276,7 @@ class OINODbMariadb extends db_1.OINODb {
276
276
  catch (e) {
277
277
  result = new OINOMariadbData([[]], [db_1.OINO_ERROR_PREFIX + " (sqlSelect): OINODbMariadb.sqlSelect exception in _db.query: " + e.message]);
278
278
  }
279
- db_1.OINOBenchmark.end("sqlSelect");
279
+ db_1.OINOBenchmark.end("OINODb", "sqlSelect");
280
280
  return result;
281
281
  }
282
282
  /**
@@ -286,7 +286,7 @@ class OINODbMariadb extends db_1.OINODb {
286
286
  *
287
287
  */
288
288
  async sqlExec(sql) {
289
- db_1.OINOBenchmark.start("sqlExec");
289
+ db_1.OINOBenchmark.start("OINODb", "sqlExec");
290
290
  let result;
291
291
  try {
292
292
  const sql_res = await this._exec(sql);
@@ -296,7 +296,7 @@ class OINODbMariadb extends db_1.OINODb {
296
296
  catch (e) {
297
297
  result = new OINOMariadbData([[]], [db_1.OINO_ERROR_PREFIX + " (sqlExec): exception in _db.exec [" + e.message + "]"]);
298
298
  }
299
- db_1.OINOBenchmark.end("sqlExec");
299
+ db_1.OINOBenchmark.end("OINODb", "sqlExec");
300
300
  return result;
301
301
  }
302
302
  /**
@@ -263,7 +263,7 @@ export class OINODbMariadb extends OINODb {
263
263
  *
264
264
  */
265
265
  async sqlSelect(sql) {
266
- OINOBenchmark.start("sqlSelect");
266
+ OINOBenchmark.start("OINODb", "sqlSelect");
267
267
  let result;
268
268
  try {
269
269
  const sql_res = await this._query(sql);
@@ -273,7 +273,7 @@ export class OINODbMariadb extends OINODb {
273
273
  catch (e) {
274
274
  result = new OINOMariadbData([[]], [OINO_ERROR_PREFIX + " (sqlSelect): OINODbMariadb.sqlSelect exception in _db.query: " + e.message]);
275
275
  }
276
- OINOBenchmark.end("sqlSelect");
276
+ OINOBenchmark.end("OINODb", "sqlSelect");
277
277
  return result;
278
278
  }
279
279
  /**
@@ -283,7 +283,7 @@ export class OINODbMariadb extends OINODb {
283
283
  *
284
284
  */
285
285
  async sqlExec(sql) {
286
- OINOBenchmark.start("sqlExec");
286
+ OINOBenchmark.start("OINODb", "sqlExec");
287
287
  let result;
288
288
  try {
289
289
  const sql_res = await this._exec(sql);
@@ -293,7 +293,7 @@ export class OINODbMariadb extends OINODb {
293
293
  catch (e) {
294
294
  result = new OINOMariadbData([[]], [OINO_ERROR_PREFIX + " (sqlExec): exception in _db.exec [" + e.message + "]"]);
295
295
  }
296
- OINOBenchmark.end("sqlExec");
296
+ OINOBenchmark.end("OINODb", "sqlExec");
297
297
  return result;
298
298
  }
299
299
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oino-ts/db-mariadb",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "OINO TS package for using Mariadb databases.",
5
5
  "author": "Matias Kiviniemi (pragmatta)",
6
6
  "license": "MPL-2.0",
@@ -21,7 +21,7 @@
21
21
  "module": "./dist/esm/index.js",
22
22
  "types": "./dist/types/index.d.ts",
23
23
  "dependencies": {
24
- "@oino-ts/db": "^0.0.13",
24
+ "@oino-ts/db": "^0.0.15",
25
25
  "mariadb": "3.2.3"
26
26
  },
27
27
  "devDependencies": {
@@ -280,7 +280,7 @@ export class OINODbMariadb extends OINODb {
280
280
  *
281
281
  */
282
282
  async sqlSelect(sql:string): Promise<OINODbDataSet> {
283
- OINOBenchmark.start("sqlSelect")
283
+ OINOBenchmark.start("OINODb", "sqlSelect")
284
284
  let result:OINODbDataSet
285
285
  try {
286
286
  const sql_res:OINODataRow[] = await this._query(sql)
@@ -290,7 +290,7 @@ export class OINODbMariadb extends OINODb {
290
290
  } catch (e:any) {
291
291
  result = new OINOMariadbData([[]], [OINO_ERROR_PREFIX + " (sqlSelect): OINODbMariadb.sqlSelect exception in _db.query: " + e.message])
292
292
  }
293
- OINOBenchmark.end("sqlSelect")
293
+ OINOBenchmark.end("OINODb", "sqlSelect")
294
294
  return result
295
295
  }
296
296
 
@@ -301,7 +301,7 @@ export class OINODbMariadb extends OINODb {
301
301
  *
302
302
  */
303
303
  async sqlExec(sql:string): Promise<OINODbDataSet> {
304
- OINOBenchmark.start("sqlExec")
304
+ OINOBenchmark.start("OINODb", "sqlExec")
305
305
  let result:OINODbDataSet
306
306
  try {
307
307
  const sql_res:OINODataRow[] = await this._exec(sql)
@@ -311,7 +311,7 @@ export class OINODbMariadb extends OINODb {
311
311
  } catch (e:any) {
312
312
  result = new OINOMariadbData([[]], [OINO_ERROR_PREFIX + " (sqlExec): exception in _db.exec [" + e.message + "]"])
313
313
  }
314
- OINOBenchmark.end("sqlExec")
314
+ OINOBenchmark.end("OINODb", "sqlExec")
315
315
  return result
316
316
  }
317
317