@hypequery/clickhouse 1.0.4 → 1.0.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.
@@ -115,10 +115,9 @@ export interface IntrospectedSchema {`;
115
115
  format: 'JSONEachRow'
116
116
  });
117
117
  const columns = await columnsQuery.json();
118
-
119
118
  typeDefinitions += `\n ${table.name}: {`;
120
119
  for (const column of columns) {
121
- const clickHouseType = column.type.replace.replace(/'/g, "\\'"); // Escape single quotes, e.g. `DateTime('UTC')`
120
+ const clickHouseType = column.type.replace(/'/g, "\\'"); // Escape single quotes, e.g. `DateTime('UTC')`
122
121
  typeDefinitions += `\n ${column.name}: '${clickHouseType}';`;
123
122
  }
124
123
  typeDefinitions += '\n };';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypequery/clickhouse",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "ClickHouse typescript query builder",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",