@oino-ts/db-postgresql 0.0.13 → 0.0.14
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.
|
@@ -242,7 +242,7 @@ WHERE table_name = `;
|
|
|
242
242
|
*
|
|
243
243
|
*/
|
|
244
244
|
async sqlSelect(sql) {
|
|
245
|
-
db_1.OINOBenchmark.start("sqlSelect");
|
|
245
|
+
db_1.OINOBenchmark.start("OINODb", "sqlSelect");
|
|
246
246
|
let result;
|
|
247
247
|
try {
|
|
248
248
|
const rows = await this._query(sql);
|
|
@@ -252,7 +252,7 @@ WHERE table_name = `;
|
|
|
252
252
|
catch (e) {
|
|
253
253
|
result = new OINOPostgresqlData([[]], [db_1.OINO_ERROR_PREFIX + " (sqlSelect): exception in _db.query [" + e.message + "]"]);
|
|
254
254
|
}
|
|
255
|
-
db_1.OINOBenchmark.end("sqlSelect");
|
|
255
|
+
db_1.OINOBenchmark.end("OINODb", "sqlSelect");
|
|
256
256
|
return result;
|
|
257
257
|
}
|
|
258
258
|
/**
|
|
@@ -262,7 +262,7 @@ WHERE table_name = `;
|
|
|
262
262
|
*
|
|
263
263
|
*/
|
|
264
264
|
async sqlExec(sql) {
|
|
265
|
-
db_1.OINOBenchmark.start("sqlExec");
|
|
265
|
+
db_1.OINOBenchmark.start("OINODb", "sqlExec");
|
|
266
266
|
let result;
|
|
267
267
|
try {
|
|
268
268
|
const rows = await this._exec(sql);
|
|
@@ -272,7 +272,7 @@ WHERE table_name = `;
|
|
|
272
272
|
catch (e) {
|
|
273
273
|
result = new OINOPostgresqlData([[]], [db_1.OINO_ERROR_PREFIX + " (sqlExec): exception in _db.exec [" + e.message + "]"]);
|
|
274
274
|
}
|
|
275
|
-
db_1.OINOBenchmark.end("sqlExec");
|
|
275
|
+
db_1.OINOBenchmark.end("OINODb", "sqlExec");
|
|
276
276
|
return result;
|
|
277
277
|
}
|
|
278
278
|
/**
|
|
@@ -239,7 +239,7 @@ WHERE table_name = `;
|
|
|
239
239
|
*
|
|
240
240
|
*/
|
|
241
241
|
async sqlSelect(sql) {
|
|
242
|
-
OINOBenchmark.start("sqlSelect");
|
|
242
|
+
OINOBenchmark.start("OINODb", "sqlSelect");
|
|
243
243
|
let result;
|
|
244
244
|
try {
|
|
245
245
|
const rows = await this._query(sql);
|
|
@@ -249,7 +249,7 @@ WHERE table_name = `;
|
|
|
249
249
|
catch (e) {
|
|
250
250
|
result = new OINOPostgresqlData([[]], [OINO_ERROR_PREFIX + " (sqlSelect): exception in _db.query [" + e.message + "]"]);
|
|
251
251
|
}
|
|
252
|
-
OINOBenchmark.end("sqlSelect");
|
|
252
|
+
OINOBenchmark.end("OINODb", "sqlSelect");
|
|
253
253
|
return result;
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
@@ -259,7 +259,7 @@ WHERE table_name = `;
|
|
|
259
259
|
*
|
|
260
260
|
*/
|
|
261
261
|
async sqlExec(sql) {
|
|
262
|
-
OINOBenchmark.start("sqlExec");
|
|
262
|
+
OINOBenchmark.start("OINODb", "sqlExec");
|
|
263
263
|
let result;
|
|
264
264
|
try {
|
|
265
265
|
const rows = await this._exec(sql);
|
|
@@ -269,7 +269,7 @@ WHERE table_name = `;
|
|
|
269
269
|
catch (e) {
|
|
270
270
|
result = new OINOPostgresqlData([[]], [OINO_ERROR_PREFIX + " (sqlExec): exception in _db.exec [" + e.message + "]"]);
|
|
271
271
|
}
|
|
272
|
-
OINOBenchmark.end("sqlExec");
|
|
272
|
+
OINOBenchmark.end("OINODb", "sqlExec");
|
|
273
273
|
return result;
|
|
274
274
|
}
|
|
275
275
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oino-ts/db-postgresql",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
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.0.
|
|
23
|
+
"@oino-ts/db": "^0.0.14",
|
|
24
24
|
"pg": "^8.11.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
package/src/OINODbPostgresql.ts
CHANGED
|
@@ -257,7 +257,7 @@ WHERE table_name = `
|
|
|
257
257
|
*
|
|
258
258
|
*/
|
|
259
259
|
async sqlSelect(sql:string): Promise<OINODbDataSet> {
|
|
260
|
-
OINOBenchmark.start("sqlSelect")
|
|
260
|
+
OINOBenchmark.start("OINODb", "sqlSelect")
|
|
261
261
|
let result:OINODbDataSet
|
|
262
262
|
try {
|
|
263
263
|
const rows:OINODataRow[] = await this._query(sql)
|
|
@@ -267,7 +267,7 @@ WHERE table_name = `
|
|
|
267
267
|
} catch (e:any) {
|
|
268
268
|
result = new OINOPostgresqlData([[]], [OINO_ERROR_PREFIX + " (sqlSelect): exception in _db.query [" + e.message + "]"])
|
|
269
269
|
}
|
|
270
|
-
OINOBenchmark.end("sqlSelect")
|
|
270
|
+
OINOBenchmark.end("OINODb", "sqlSelect")
|
|
271
271
|
return result
|
|
272
272
|
}
|
|
273
273
|
|
|
@@ -278,7 +278,7 @@ WHERE table_name = `
|
|
|
278
278
|
*
|
|
279
279
|
*/
|
|
280
280
|
async sqlExec(sql:string): Promise<OINODbDataSet> {
|
|
281
|
-
OINOBenchmark.start("sqlExec")
|
|
281
|
+
OINOBenchmark.start("OINODb", "sqlExec")
|
|
282
282
|
let result:OINODbDataSet
|
|
283
283
|
try {
|
|
284
284
|
const rows:OINODataRow[] = await this._exec(sql)
|
|
@@ -288,7 +288,7 @@ WHERE table_name = `
|
|
|
288
288
|
} catch (e:any) {
|
|
289
289
|
result = new OINOPostgresqlData([[]], [OINO_ERROR_PREFIX + " (sqlExec): exception in _db.exec [" + e.message + "]"])
|
|
290
290
|
}
|
|
291
|
-
OINOBenchmark.end("sqlExec")
|
|
291
|
+
OINOBenchmark.end("OINODb", "sqlExec")
|
|
292
292
|
return result
|
|
293
293
|
}
|
|
294
294
|
|