From 7ba30ae761c5f312fdb7628f70f03b8ebc6e5565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E4=B8=AB=E8=AE=B2=E6=A2=B5?= Date: Sun, 30 Aug 2026 12:26:06 +0800 Subject: [PATCH] feat(sql-files): create, rename, and delete SQL files in tree --- .github/workflows/ci.yml | 2 + Makefile | 2 +- .../src/components/layout/SqlFilePanel.vue | 161 ++++++++++++++- .../layout/__tests__/SqlFilePanel.spec.ts | 16 ++ apps/desktop/src/i18n/locales/en.ts | 13 ++ apps/desktop/src/i18n/locales/es.ts | 13 ++ apps/desktop/src/i18n/locales/it.ts | 13 ++ apps/desktop/src/i18n/locales/ja.ts | 13 ++ apps/desktop/src/i18n/locales/ko.ts | 13 ++ apps/desktop/src/i18n/locales/pt-BR.ts | 13 ++ apps/desktop/src/i18n/locales/zh-CN.ts | 13 ++ apps/desktop/src/i18n/locales/zh-TW.ts | 13 ++ .../sql/externalSqlFileTarget.spec.ts | 16 +- apps/desktop/src/lib/backend/api.ts | 3 + apps/desktop/src/lib/backend/http.ts | 12 ++ apps/desktop/src/lib/backend/tauri.ts | 12 ++ .../src/lib/sql/externalSqlFileTarget.ts | 20 ++ apps/desktop/src/stores/queryStore.ts | 25 +++ crates/dbx-core/src/table_export.rs | 22 +- crates/dbx-mcp/tests/protocol.rs | 5 + src-tauri/src/commands/list_sql_files.rs | 195 +++++++++++++++++- src-tauri/src/lib.rs | 3 + 22 files changed, 590 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3fcef5c63f..cc841fb638 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -427,6 +427,8 @@ jobs: env: # sccache cannot reuse Cargo incremental artifacts, so avoid generating them in CI. CARGO_INCREMENTAL: "0" + # Deep async export tests exceed the Rust test harness's default thread stack on Linux. + RUST_MIN_STACK: 8388608 RUSTC_WRAPPER: sccache # The fast lane skips only system font discovery while retaining the other default capabilities. RUST_FEATURE_MODE: ${{ github.event_name == 'pull_request' && needs.changes.outputs.rust_full != 'true' && 'fast' || 'full' }} diff --git a/Makefile b/Makefile index 6af66d9d99..04c09ecde6 100644 --- a/Makefile +++ b/Makefile @@ -113,7 +113,7 @@ cargo-check-fast: cargo check --no-default-features --features sqlite-bundled cargo-test-fast: - cargo test --no-default-features --features sqlite-bundled + RUST_MIN_STACK=8388608 cargo test --no-default-features --features sqlite-bundled db-list: @$(PNPM) db:env -- list diff --git a/apps/desktop/src/components/layout/SqlFilePanel.vue b/apps/desktop/src/components/layout/SqlFilePanel.vue index 1fafecf81e..1b63966d02 100644 --- a/apps/desktop/src/components/layout/SqlFilePanel.vue +++ b/apps/desktop/src/components/layout/SqlFilePanel.vue @@ -1,8 +1,10 @@