@oino-ts/db 0.20.1 → 0.20.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.
@@ -81,6 +81,9 @@ class OINODbDataModel {
81
81
  result += f.printSqlColumnName() + "=" + f.printCellAsSqlValue(val);
82
82
  }
83
83
  }
84
+ if (result == "") {
85
+ throw new Error(common_1.OINO_ERROR_PREFIX + ": no valid updatable fields provided for row!");
86
+ }
84
87
  return result;
85
88
  }
86
89
  _printSqlPrimaryKeyCondition(id_value) {
@@ -78,6 +78,9 @@ export class OINODbDataModel {
78
78
  result += f.printSqlColumnName() + "=" + f.printCellAsSqlValue(val);
79
79
  }
80
80
  }
81
+ if (result == "") {
82
+ throw new Error(OINO_ERROR_PREFIX + ": no valid updatable fields provided for row!");
83
+ }
81
84
  return result;
82
85
  }
83
86
  _printSqlPrimaryKeyCondition(id_value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oino-ts/db",
3
- "version": "0.20.1",
3
+ "version": "0.20.2",
4
4
  "description": "OINO TS library package for publishing an SQL database tables as a REST API.",
5
5
  "author": "Matias Kiviniemi (pragmatta)",
6
6
  "license": "MPL-2.0",
@@ -19,13 +19,13 @@
19
19
  "module": "./dist/esm/index.js",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "dependencies": {
22
- "@oino-ts/common": "0.20.1",
22
+ "@oino-ts/common": "0.20.2",
23
23
  "oino-ts": "file:.."
24
24
  },
25
25
  "devDependencies": {
26
- "@oino-ts/types": "0.20.1",
26
+ "@oino-ts/types": "0.20.2",
27
27
  "@types/bun": "^1.1.14",
28
- "@types/node": "^20.20.10",
28
+ "@types/node": "^20.20.20",
29
29
  "typescript": "~5.9.0"
30
30
  },
31
31
  "files": [
@@ -85,6 +85,9 @@ export class OINODbDataModel {
85
85
  result += f.printSqlColumnName() + "=" + f.printCellAsSqlValue(val);
86
86
  }
87
87
  }
88
+ if (result == "") {
89
+ throw new Error(OINO_ERROR_PREFIX + ": no valid updatable fields provided for row!")
90
+ }
88
91
  return result;
89
92
  }
90
93