@mastra/clickhouse 1.15.0 → 1.15.1
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/CHANGELOG.md +18 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @mastra/clickhouse
|
|
2
2
|
|
|
3
|
+
## 1.15.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed ClickHouse schema operations to avoid socket warnings from unread responses. ([#21363](https://github.com/mastra-ai/mastra/pull/21363))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`088e41e`](https://github.com/mastra-ai/mastra/commit/088e41e434ed05f2c674b254f1034ec46a57a7be), [`aa3e7be`](https://github.com/mastra-ai/mastra/commit/aa3e7be30f8addb0278ea74429f4df054517a287), [`d118873`](https://github.com/mastra-ai/mastra/commit/d118873cfd5074b1f814a1c169a97ca7a3a29174), [`b2f0013`](https://github.com/mastra-ai/mastra/commit/b2f0013375588d40c03c13e843b99c0ff8872ca5), [`3b541ae`](https://github.com/mastra-ai/mastra/commit/3b541ae5d410c52b80a7e381d84d021cddb9a449), [`79dd7c2`](https://github.com/mastra-ai/mastra/commit/79dd7c261ee6be1fafedd4651959394db21d2cba), [`90822db`](https://github.com/mastra-ai/mastra/commit/90822dba08fb2169c518e4a6d7f127c098eb46b8), [`898bba4`](https://github.com/mastra-ai/mastra/commit/898bba46d4806dd255a44e5dc3a3d5827eaefdfe), [`b9a28ec`](https://github.com/mastra-ai/mastra/commit/b9a28ecf7acdc0cb7a543d5b660f9fbee301df9a), [`f9aab1c`](https://github.com/mastra-ai/mastra/commit/f9aab1cfc3fda03238a7fd7bd8b794e07497878c), [`3700208`](https://github.com/mastra-ai/mastra/commit/37002080c7838267803a7e579a7d58b908d62f36), [`e31421b`](https://github.com/mastra-ai/mastra/commit/e31421bc9c11c03c6e74f447ecb5820000e2b9d7), [`8b7131e`](https://github.com/mastra-ai/mastra/commit/8b7131eb0407f58f5205e68fb27b81f026488f28), [`161258b`](https://github.com/mastra-ai/mastra/commit/161258b3473a6d0fce00a43cab59d119a49a232f), [`aece0e7`](https://github.com/mastra-ai/mastra/commit/aece0e7cb124ae1eb1230689b887f5554b9a0bf0), [`ae79e34`](https://github.com/mastra-ai/mastra/commit/ae79e34c0bd8674fc24c7524217bfc4a051c6136), [`59d8898`](https://github.com/mastra-ai/mastra/commit/59d8898c8cb48b342fe5bcb5eee803cc8cc95060), [`a6c4399`](https://github.com/mastra-ai/mastra/commit/a6c4399763590b3dae21a2c81826e89a3b1deee4), [`a40f915`](https://github.com/mastra-ai/mastra/commit/a40f9157690d89ef13ce825cc88e30be581de5d4), [`8ea8038`](https://github.com/mastra-ai/mastra/commit/8ea80386fde53d26e2c0b2060c53bc9bd9be10f3), [`be31796`](https://github.com/mastra-ai/mastra/commit/be3179624ad5f77cff5fa342cd08046bf7605283), [`79c4f82`](https://github.com/mastra-ai/mastra/commit/79c4f8295f568752eeadf8a9b50010a7d9ec06ae), [`7dafa4f`](https://github.com/mastra-ai/mastra/commit/7dafa4f670fb16ec8ff07349645a00ca12bc5794)]:
|
|
10
|
+
- @mastra/core@1.59.0
|
|
11
|
+
|
|
12
|
+
## 1.15.1-alpha.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Fixed ClickHouse schema operations to avoid socket warnings from unread responses. ([#21363](https://github.com/mastra-ai/mastra/pull/21363))
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`aa3e7be`](https://github.com/mastra-ai/mastra/commit/aa3e7be30f8addb0278ea74429f4df054517a287), [`90822db`](https://github.com/mastra-ai/mastra/commit/90822dba08fb2169c518e4a6d7f127c098eb46b8), [`3700208`](https://github.com/mastra-ai/mastra/commit/37002080c7838267803a7e579a7d58b908d62f36), [`8b7131e`](https://github.com/mastra-ai/mastra/commit/8b7131eb0407f58f5205e68fb27b81f026488f28), [`79c4f82`](https://github.com/mastra-ai/mastra/commit/79c4f8295f568752eeadf8a9b50010a7d9ec06ae)]:
|
|
19
|
+
- @mastra/core@1.59.0-alpha.1
|
|
20
|
+
|
|
3
21
|
## 1.15.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/docs/SKILL.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -584,7 +584,7 @@ var ClickhouseDB = class extends _mastra_core_base.MastraBase {
|
|
|
584
584
|
${this.ttl?.[tableName]?.row ? `TTL toDateTime(createdAt) + INTERVAL ${this.ttl[tableName].row.interval} ${this.ttl[tableName].row.unit}` : ""}
|
|
585
585
|
SETTINGS index_granularity = 8192
|
|
586
586
|
`;
|
|
587
|
-
await this.client.
|
|
587
|
+
await this.client.command({
|
|
588
588
|
query: applyReplicationToDDL(sql, this.replication),
|
|
589
589
|
clickhouse_settings: {
|
|
590
590
|
date_time_input_format: "best_effort",
|
|
@@ -615,7 +615,7 @@ var ClickhouseDB = class extends _mastra_core_base.MastraBase {
|
|
|
615
615
|
if (columnDef.nullable !== false) sqlType = `Nullable(${sqlType})`;
|
|
616
616
|
const defaultValue = columnDef.nullable === false ? (0, _mastra_core_storage.getDefaultValue)(columnDef.type) : "";
|
|
617
617
|
const alterSql = `ALTER TABLE ${tableName} ADD COLUMN IF NOT EXISTS "${columnName}" ${sqlType} ${defaultValue}`.trim();
|
|
618
|
-
await this.client.
|
|
618
|
+
await this.client.command({ query: addOnClusterToDDL(alterSql, this.replication) });
|
|
619
619
|
this.logger?.debug?.(`Added column ${columnName} to table ${tableName}`);
|
|
620
620
|
}
|
|
621
621
|
} catch (error) {
|
|
@@ -645,7 +645,7 @@ var ClickhouseDB = class extends _mastra_core_base.MastraBase {
|
|
|
645
645
|
}
|
|
646
646
|
async dropTable({ tableName }) {
|
|
647
647
|
try {
|
|
648
|
-
await this.client.
|
|
648
|
+
await this.client.command({ query: addOnClusterToDDL(`DROP TABLE IF EXISTS ${tableName}`, this.replication) });
|
|
649
649
|
} catch (error) {
|
|
650
650
|
throw new _mastra_core_error.MastraError({
|
|
651
651
|
id: (0, _mastra_core_storage.createStorageErrorId)("CLICKHOUSE", "DROP_TABLE", "FAILED"),
|