@oino-ts/nosql 1.0.0 → 1.0.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.
- package/dist/cjs/OINONoSql.js +2 -6
- package/dist/esm/OINONoSql.js +2 -6
- package/dist/types/OINONoSql.d.ts +1 -2
- package/package.json +4 -4
- package/src/OINONoSql.ts +2 -8
package/dist/cjs/OINONoSql.js
CHANGED
|
@@ -43,12 +43,8 @@ class OINONoSql extends common_1.OINODataSource {
|
|
|
43
43
|
this.nosqlParams = { ...params };
|
|
44
44
|
this.name = this.nosqlParams.table;
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return name;
|
|
49
|
-
}
|
|
50
|
-
printColumnName(name) {
|
|
51
|
-
return name;
|
|
46
|
+
printColumnName(column) {
|
|
47
|
+
return column; // nosql storage doesn't have column name formatting like sql (implementations can override if needed)
|
|
52
48
|
}
|
|
53
49
|
printCellAsValue(cellValue, nativeType) {
|
|
54
50
|
if (cellValue === null || cellValue === undefined) {
|
package/dist/esm/OINONoSql.js
CHANGED
|
@@ -40,12 +40,8 @@ export class OINONoSql extends OINODataSource {
|
|
|
40
40
|
this.nosqlParams = { ...params };
|
|
41
41
|
this.name = this.nosqlParams.table;
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return name;
|
|
46
|
-
}
|
|
47
|
-
printColumnName(name) {
|
|
48
|
-
return name;
|
|
43
|
+
printColumnName(column) {
|
|
44
|
+
return column; // nosql storage doesn't have column name formatting like sql (implementations can override if needed)
|
|
49
45
|
}
|
|
50
46
|
printCellAsValue(cellValue, nativeType) {
|
|
51
47
|
if (cellValue === null || cellValue === undefined) {
|
|
@@ -29,8 +29,7 @@ export declare abstract class OINONoSql extends OINODataSource {
|
|
|
29
29
|
* @param params nosql storage connection parameters
|
|
30
30
|
*/
|
|
31
31
|
constructor(params: OINONoSqlParams);
|
|
32
|
-
|
|
33
|
-
printColumnName(name: string): string;
|
|
32
|
+
printColumnName(column: string): string;
|
|
34
33
|
printCellAsValue(cellValue: OINODataCell, nativeType: string): string;
|
|
35
34
|
printStringValue(s: string): string;
|
|
36
35
|
parseValueAsCell(v: OINODataCell, nativeType: string): OINODataCell;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oino-ts/nosql",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "OINO TS library package for publishing NoSQL storage 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": "1.0.
|
|
22
|
+
"@oino-ts/common": "1.0.2",
|
|
23
23
|
"oino-ts": "file:.."
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@oino-ts/types": "1.0.
|
|
26
|
+
"@oino-ts/types": "1.0.2",
|
|
27
27
|
"@types/bun": "^1.1.14",
|
|
28
|
-
"@types/node": "^21.0.
|
|
28
|
+
"@types/node": "^21.0.20",
|
|
29
29
|
"typescript": "~5.9.0"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
package/src/OINONoSql.ts
CHANGED
|
@@ -49,14 +49,8 @@ export abstract class OINONoSql extends OINODataSource {
|
|
|
49
49
|
this.name = this.nosqlParams.table
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
printTableName(name: string): string {
|
|
55
|
-
return name
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
printColumnName(name: string): string {
|
|
59
|
-
return name
|
|
52
|
+
printColumnName(column:string): string {
|
|
53
|
+
return column // nosql storage doesn't have column name formatting like sql (implementations can override if needed)
|
|
60
54
|
}
|
|
61
55
|
|
|
62
56
|
printCellAsValue(cellValue: OINODataCell, nativeType: string): string {
|