Skip to content

Commit f1a7e47

Browse files
committed
attempt to fix ci
1 parent 8da1591 commit f1a7e47

File tree

3 files changed

+255
-1495
lines changed

3 files changed

+255
-1495
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"packageManager": "[email protected]",
33
"devDependencies": {
4-
"turbo": "^2.5.8"
4+
"turbo": "^2.5.8",
5+
"esbuild": "0.25.11"
56
},
6-
"dependencies": {
7-
"@ai-sdk/react": "^2.0.76"
7+
"pnpm": {
8+
"overrides": {
9+
"esbuild": "0.25.11"
10+
}
811
}
912
}

plugins/db2/js/bindings.gen.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,21 @@
77

88

99
export const commands = {
10-
async executeLocal(sql: string, args: string[]) : Promise<JsonValue[]> {
11-
return await TAURI_INVOKE("plugin:db2|execute_local", { sql, args });
10+
async executeLocal(sql: string, args: string[]) : Promise<Result<JsonValue[], string>> {
11+
try {
12+
return { status: "ok", data: await TAURI_INVOKE("plugin:db2|execute_local", { sql, args }) };
13+
} catch (e) {
14+
if(e instanceof Error) throw e;
15+
else return { status: "error", error: e as any };
16+
}
1217
},
13-
async executeCloud(sql: string, args: string[]) : Promise<JsonValue[]> {
14-
return await TAURI_INVOKE("plugin:db2|execute_cloud", { sql, args });
18+
async executeCloud(sql: string, args: string[]) : Promise<Result<JsonValue[], string>> {
19+
try {
20+
return { status: "ok", data: await TAURI_INVOKE("plugin:db2|execute_cloud", { sql, args }) };
21+
} catch (e) {
22+
if(e instanceof Error) throw e;
23+
else return { status: "error", error: e as any };
24+
}
1525
}
1626
}
1727

0 commit comments

Comments
 (0)