@mastra/clickhouse 0.2.9-alpha.0 → 0.2.9
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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +7 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/storage/index.ts +1 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.4.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 9009ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.8.2
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/clickhouse/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
14
|
Analysis will use the bundled TypeScript version 5.8.2
|
|
15
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/clickhouse/dist/_tsup-dts-rollup.d.cts[39m
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 11028ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
20
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m25.65 KB[39m
|
|
21
|
+
[32mCJS[39m ⚡️ Build success in 812ms
|
|
22
|
+
[32mESM[39m [1mdist/index.js [22m[32m25.48 KB[39m
|
|
23
|
+
[32mESM[39m ⚡️ Build success in 813ms
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -303,7 +303,7 @@ var ClickhouseStore = class extends storage.MastraStorage {
|
|
|
303
303
|
try {
|
|
304
304
|
const keyEntries = Object.entries(keys);
|
|
305
305
|
const conditions = keyEntries.map(
|
|
306
|
-
([key]
|
|
306
|
+
([key]) => `"${key}" = {var_${key}:${COLUMN_TYPES[storage.TABLE_SCHEMAS[tableName]?.[key]?.type ?? "text"]}}`
|
|
307
307
|
).join(" AND ");
|
|
308
308
|
const values = keyEntries.reduce((acc, [key, value]) => {
|
|
309
309
|
return { ...acc, [`var_${key}`]: value };
|
package/dist/index.js
CHANGED
|
@@ -301,7 +301,7 @@ var ClickhouseStore = class extends MastraStorage {
|
|
|
301
301
|
try {
|
|
302
302
|
const keyEntries = Object.entries(keys);
|
|
303
303
|
const conditions = keyEntries.map(
|
|
304
|
-
([key]
|
|
304
|
+
([key]) => `"${key}" = {var_${key}:${COLUMN_TYPES[TABLE_SCHEMAS[tableName]?.[key]?.type ?? "text"]}}`
|
|
305
305
|
).join(" AND ");
|
|
306
306
|
const values = keyEntries.reduce((acc, [key, value]) => {
|
|
307
307
|
return { ...acc, [`var_${key}`]: value };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/clickhouse",
|
|
3
|
-
"version": "0.2.9
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Clickhouse provider for Mastra - includes db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@clickhouse/client": "^1.11.0",
|
|
23
|
-
"@mastra/core": "^0.8.2
|
|
23
|
+
"@mastra/core": "^0.8.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@microsoft/api-extractor": "^7.52.1",
|
package/src/storage/index.ts
CHANGED
|
@@ -211,7 +211,6 @@ export class ClickhouseStore extends MastraStorage {
|
|
|
211
211
|
attributes?: Record<string, string>;
|
|
212
212
|
filters?: Record<string, any>;
|
|
213
213
|
}): Promise<any[]> {
|
|
214
|
-
let idx = 1;
|
|
215
214
|
const limit = perPage;
|
|
216
215
|
const offset = page * perPage;
|
|
217
216
|
|
|
@@ -399,7 +398,7 @@ export class ClickhouseStore extends MastraStorage {
|
|
|
399
398
|
const keyEntries = Object.entries(keys);
|
|
400
399
|
const conditions = keyEntries
|
|
401
400
|
.map(
|
|
402
|
-
([key]
|
|
401
|
+
([key]) =>
|
|
403
402
|
`"${key}" = {var_${key}:${COLUMN_TYPES[TABLE_SCHEMAS[tableName as TABLE_NAMES]?.[key]?.type ?? 'text']}}`,
|
|
404
403
|
)
|
|
405
404
|
.join(' AND ');
|