25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
ci: split CI jobs, add clippy/test, upgrade actions
t8y2658a14f2901b
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 56a05fec5f..5042ad7346 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -6,23 +6,26 @@ on:pull_request:branches: [main]+concurrency:+ group: ${{ github.workflow }}-${{ github.ref }}+ cancel-in-progress: true+jobs:- check:+ frontend:runs-on: ubuntu-22.04steps:- uses: actions/checkout@v4- with:- fetch-depth: 0- name: Setup Node.jsuses: actions/setup-node@v4with:node-version: 22.13.0+ cache: pnpm- name: Setup pnpm- uses: pnpm/action-setup@v4+ uses: pnpm/action-setup@v6- - name: Install system dependencies (Linux)+ - name: Install system dependenciesrun: |sudo apt-get updatesudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev libsecret-1-dev@@ -45,15 +48,20 @@ jobs:- name: Node package publish dry runrun: pnpm publish:dry-run+ rust:+ runs-on: ubuntu-22.04+ steps:+ - uses: actions/checkout@v4++ - name: Install system dependencies+ run: |+ sudo apt-get update+ sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev libsecret-1-dev+- name: Setup Rustuses: dtolnay/rust-toolchain@stable-- - name: Setup Java- uses: actions/setup-java@v4with:- distribution: temurin- java-version: '17'- cache: maven+ components: clippy- name: Rust cacheuses: swatinem/rust-cache@v2@@ -64,9 +72,29 @@ jobs:- name: Cargo fmt checkrun: cargo fmt --check+ - name: Cargo clippy+ run: cargo clippy --workspace --locked+- name: Cargo checkrun: cargo check --workspace --locked+ - name: Cargo test+ run: cargo test --workspace --locked++ jdbc:+ runs-on: ubuntu-22.04+ steps:+ - uses: actions/checkout@v4+ with:+ fetch-depth: 0++ - name: Setup Java+ uses: actions/setup-java@v4+ with:+ distribution: temurin+ java-version: '17'+ cache: maven+- name: JDBC plugin version guardenv:BASE_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.ymlindex cf474a397e..45dfa9df9b 100644--- a/.github/workflows/docs.yml+++ b/.github/workflows/docs.yml@@ -25,7 +25,7 @@ jobs:- uses: actions/setup-node@v4with:node-version: 22- - uses: pnpm/action-setup@v4+ - uses: pnpm/action-setup@v6- run: cd docs && pnpm install --frozen-lockfile --ignore-workspace && pnpm build- name: Deploy to Cloudflare Workersworking-directory: docsdiff --git a/.github/workflows/mcp-release.yml b/.github/workflows/mcp-release.ymlindex d237004049..51175e53f2 100644--- a/.github/workflows/mcp-release.yml+++ b/.github/workflows/mcp-release.yml@@ -22,7 +22,7 @@ jobs:fetch-depth: 0- name: Setup pnpm- uses: pnpm/action-setup@v4+ uses: pnpm/action-setup@v6- name: Setup Node.jsuses: actions/setup-node@v4diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 11e830fccb..24ededd648 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -73,10 +73,10 @@ jobs:- name: Setup Node.jsuses: actions/setup-node@v4with:- node-version: 20+ node-version: 22- name: Setup pnpm- uses: pnpm/action-setup@v4+ uses: pnpm/action-setup@v6- name: Install frontend dependenciesrun: pnpm installdiff --git a/crates/dbx-web/src/routes/agents.rs b/crates/dbx-web/src/routes/agents.rsindex 0a064cda89..e6bb4e8ee4 100644--- a/crates/dbx-web/src/routes/agents.rs+++ b/crates/dbx-web/src/routes/agents.rs@@ -139,7 +139,7 @@ pub async fn import_agents_from_zip(let tmp_dir = state.data_dir.join("tmp");std::fs::create_dir_all(&tmp_dir).map_err(|err| AppError(err.to_string()))?;- while let Some(field) = multipart.next_field().await.map_err(|err| AppError(err.to_string()))? {+ if let Some(field) = multipart.next_field().await.map_err(|err| AppError(err.to_string()))? {let file_name = field.file_name().unwrap_or("offline-drivers.zip").to_string();if !file_name.to_ascii_lowercase().ends_with(".zip") {return Err(AppError("Offline driver package must be a .zip file".to_string()));diff --git a/crates/dbx-web/src/routes/sql_file.rs b/crates/dbx-web/src/routes/sql_file.rsindex f15d2d509f..710558419c 100644--- a/crates/dbx-web/src/routes/sql_file.rs+++ b/crates/dbx-web/src/routes/sql_file.rs@@ -42,7 +42,7 @@ pub async fn preview_sql_file(let tmp_dir = state.data_dir.join("tmp");std::fs::create_dir_all(&tmp_dir).map_err(|e| AppError(e.to_string()))?;- while let Some(field) = multipart.next_field().await.map_err(|e| AppError(e.to_string()))? {+ if let Some(field) = multipart.next_field().await.map_err(|e| AppError(e.to_string()))? {let file_name = field.file_name().unwrap_or("upload.sql").to_string();let data = field.bytes().await.map_err(|e| AppError(e.to_string()))?;diff --git a/crates/dbx-web/src/routes/table_import.rs b/crates/dbx-web/src/routes/table_import.rsindex ad9b4c96ef..5a87ea425d 100644--- a/crates/dbx-web/src/routes/table_import.rs+++ b/crates/dbx-web/src/routes/table_import.rs@@ -30,7 +30,7 @@ pub async fn preview_import(let tmp_dir = state.data_dir.join("tmp");std::fs::create_dir_all(&tmp_dir).map_err(|e| AppError(e.to_string()))?;- while let Some(field) = multipart.next_field().await.map_err(|e| AppError(e.to_string()))? {+ if let Some(field) = multipart.next_field().await.map_err(|e| AppError(e.to_string()))? {let file_name = field.file_name().unwrap_or("upload.csv").to_string();let data = field.bytes().await.map_err(|e| AppError(e.to_string()))?;