@hypequery/clickhouse 1.2.4 → 1.2.5

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.
@@ -118,7 +118,7 @@ export interface IntrospectedSchema {`;
118
118
  typeDefinitions += `\n ${table.name}: {`;
119
119
  for (const column of columns) {
120
120
  const clickHouseType = column.type.replace(/'/g, "\\'"); // Escape single quotes, e.g. `DateTime('UTC')`
121
- typeDefinitions += `\n ${column.name}: '${clickHouseType}';`;
121
+ typeDefinitions += `\n '${column.name}': '${clickHouseType}';`;
122
122
  }
123
123
  typeDefinitions += '\n };';
124
124
  }
@@ -137,7 +137,7 @@ export interface IntrospectedSchema {`;
137
137
  typeDefinitions += `export interface ${capitalizeFirstLetter(table.name)}Record {`;
138
138
  for (const column of columns) {
139
139
  const tsType = clickhouseToTsType(column.type).replace(/'/g, '');
140
- typeDefinitions += `\n ${column.name}: ${tsType};`;
140
+ typeDefinitions += `\n '${column.name}': ${tsType};`;
141
141
  }
142
142
  typeDefinitions += '\n}\n\n';
143
143
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypequery/clickhouse",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "ClickHouse typescript query builder",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",