@mastra/clickhouse 0.15.1-alpha.1 → 0.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 +22 -0
- 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 +6 -6
package/dist/index.js
CHANGED
|
@@ -1109,7 +1109,7 @@ var MemoryStorageClickhouse = class extends MemoryStorage {
|
|
|
1109
1109
|
UPDATE ${setClauses.join(", ")}
|
|
1110
1110
|
WHERE id = {var_id_${paramIdx}:String}
|
|
1111
1111
|
`;
|
|
1112
|
-
console.
|
|
1112
|
+
console.info("Updating message:", id, "with query:", updateQuery, "values:", values);
|
|
1113
1113
|
updatePromises.push(
|
|
1114
1114
|
this.client.command({
|
|
1115
1115
|
query: updateQuery,
|
|
@@ -1168,7 +1168,7 @@ var MemoryStorageClickhouse = class extends MemoryStorage {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
1170
|
if (needsRetry) {
|
|
1171
|
-
console.
|
|
1171
|
+
console.info("Update not applied correctly, retrying with DELETE + INSERT for message:", id);
|
|
1172
1172
|
await this.client.command({
|
|
1173
1173
|
query: `DELETE FROM ${TABLE_MESSAGES} WHERE id = {messageId:String}`,
|
|
1174
1174
|
query_params: { messageId: id },
|
|
@@ -1620,7 +1620,7 @@ var StoreOperationsClickhouse = class extends StoreOperations {
|
|
|
1620
1620
|
use_client_time_zone: 1
|
|
1621
1621
|
}
|
|
1622
1622
|
});
|
|
1623
|
-
console.
|
|
1623
|
+
console.info("INSERT RESULT", result);
|
|
1624
1624
|
} catch (error) {
|
|
1625
1625
|
throw new MastraError(
|
|
1626
1626
|
{
|