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
perf(plugins): keep download control requests independent of selection size
t8y21511f11be1de
diff --git a/src-tauri/src/commands/plugin_download.rs b/src-tauri/src/commands/plugin_download.rsindex debc147a4a..1f67398f6f 100644--- a/src-tauri/src/commands/plugin_download.rs+++ b/src-tauri/src/commands/plugin_download.rs@@ -45,6 +45,11 @@ pub async fn download_plugin_file(let download_uuid = uuid::Uuid::parse_str(&download_id).map_err(|error| error.to_string())?;let input = params.as_object_mut().ok_or("Download params must be an object")?;input.insert("downloadId".into(), json!(download_id));+ let control = json!({+ "downloadId": download_id,+ "connectionId": params.get("connectionId"),+ "providerId": params.get("providerId"),+ });let cancel = CancellationToken::new();let key = format!("{plugin_id}:{download_id}");{@@ -80,7 +85,7 @@ pub async fn download_plugin_file(return Ok(None);}let chunk: Value = host- .invoke(&plugin_id, "filesystem/download/read", params.clone(), None, Some(Duration::from_secs(120)))+ .invoke(&plugin_id, "filesystem/download/read", control.clone(), None, Some(Duration::from_secs(120))).await?;let encoded = chunk.get("dataBase64").and_then(Value::as_str).ok_or("Invalid download chunk")?;if encoded.len() > 1_398_104 {@@ -114,6 +119,6 @@ pub async fn download_plugin_file(_ = cancel.cancelled() => Ok(None),};let _: Result<Value, _> =- host.invoke(&plugin_id, "filesystem/download/close", params, None, Some(Duration::from_secs(10))).await;+ host.invoke(&plugin_id, "filesystem/download/close", control, None, Some(Duration::from_secs(10))).await;result}