@oino-ts/blob 1.0.1 → 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.
@@ -32,16 +32,8 @@ class OINOBlob extends common_1.OINODataSource {
32
32
  this.blobParams = { ...params };
33
33
  this.name = this.blobParams.container;
34
34
  }
35
- // ── OINODataSource passthrough stubs ──────────────────────────────────
36
- // These are required by the abstract base class but are not meaningful
37
- // for blob storage. They return sensible no-op values so that
38
- // OINODataField instances created by OINOBlobDataModel can function
39
- // correctly for serialisation purposes.
40
- printTableName(name) {
41
- return name;
42
- }
43
- printColumnName(name) {
44
- return name;
35
+ printColumnName(column) {
36
+ return column; // blob storage doesn't have column name formatting like sql (implementations can override if needed)
45
37
  }
46
38
  printCellAsValue(cellValue, _sqlType) {
47
39
  if (cellValue === null || cellValue === undefined) {
@@ -29,16 +29,8 @@ export class OINOBlob extends OINODataSource {
29
29
  this.blobParams = { ...params };
30
30
  this.name = this.blobParams.container;
31
31
  }
32
- // ── OINODataSource passthrough stubs ──────────────────────────────────
33
- // These are required by the abstract base class but are not meaningful
34
- // for blob storage. They return sensible no-op values so that
35
- // OINODataField instances created by OINOBlobDataModel can function
36
- // correctly for serialisation purposes.
37
- printTableName(name) {
38
- return name;
39
- }
40
- printColumnName(name) {
41
- return name;
32
+ printColumnName(column) {
33
+ return column; // blob storage doesn't have column name formatting like sql (implementations can override if needed)
42
34
  }
43
35
  printCellAsValue(cellValue, _sqlType) {
44
36
  if (cellValue === null || cellValue === undefined) {
@@ -18,8 +18,7 @@ export declare abstract class OINOBlob extends OINODataSource {
18
18
  * @param params blob storage connection parameters
19
19
  */
20
20
  constructor(params: OINOBlobParams);
21
- printTableName(name: string): string;
22
- printColumnName(name: string): string;
21
+ printColumnName(column: string): string;
23
22
  printCellAsValue(cellValue: OINODataCell, _sqlType: string): string;
24
23
  printStringValue(s: string): string;
25
24
  parseValueAsCell(v: OINODataCell, nativeType: string): OINODataCell;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oino-ts/blob",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "OINO TS library package for publishing blob 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.1",
22
+ "@oino-ts/common": "1.0.2",
23
23
  "oino-ts": "file:.."
24
24
  },
25
25
  "devDependencies": {
26
- "@oino-ts/types": "1.0.1",
26
+ "@oino-ts/types": "1.0.2",
27
27
  "@types/bun": "^1.1.14",
28
- "@types/node": "^21.0.10",
28
+ "@types/node": "^21.0.20",
29
29
  "typescript": "~5.9.0"
30
30
  },
31
31
  "files": [
package/src/OINOBlob.ts CHANGED
@@ -37,18 +37,8 @@ export abstract class OINOBlob extends OINODataSource {
37
37
  this.name = this.blobParams.container
38
38
  }
39
39
 
40
- // ── OINODataSource passthrough stubs ──────────────────────────────────
41
- // These are required by the abstract base class but are not meaningful
42
- // for blob storage. They return sensible no-op values so that
43
- // OINODataField instances created by OINOBlobDataModel can function
44
- // correctly for serialisation purposes.
45
-
46
- printTableName(name: string): string {
47
- return name
48
- }
49
-
50
- printColumnName(name: string): string {
51
- return name
40
+ printColumnName(column:string): string {
41
+ return column // blob storage doesn't have column name formatting like sql (implementations can override if needed)
52
42
  }
53
43
 
54
44
  printCellAsValue(cellValue: OINODataCell, _sqlType: string): string {