Skip to content

armgit / dbx

Public Imported from GitHub
0

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。

fix: satisfy clippy for jdbc plugin upload

t8y26d6ba34caca9
diff --git a/crates/dbx-web/src/routes/jdbc.rs b/crates/dbx-web/src/routes/jdbc.rs
index db05c299f9..47bd605f9a 100644
--- a/crates/dbx-web/src/routes/jdbc.rs
+++ b/crates/dbx-web/src/routes/jdbc.rs
@@ -70,7 +70,7 @@ pub async fn install_jdbc_plugin_local(
let temp_dir = root.join("jdbc").with_extension("upload_tmp");
std::fs::create_dir_all(&temp_dir).map_err(|e| AppError::internal(e.to_string()))?;
- while let Ok(Some(field)) = multipart.next_field().await {
+ if let Ok(Some(field)) = multipart.next_field().await {
let file_name = field.file_name().unwrap_or("plugin.zip").to_string();
if !file_name.to_lowercase().ends_with(".zip") {
return Err(AppError::bad_request("Only .zip files can be imported for JDBC plugin"));