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
fix(sql-library): use string compare instead of extname for import folder
t8y2c4839b6d130f
diff --git a/apps/desktop/src/components/layout/SqlLibraryPanel.vue b/apps/desktop/src/components/layout/SqlLibraryPanel.vueindex 547fa6c366..74aaf2d56b 100644--- a/apps/desktop/src/components/layout/SqlLibraryPanel.vue+++ b/apps/desktop/src/components/layout/SqlLibraryPanel.vue@@ -181,7 +181,7 @@ async function exportFolderContents(folder?: SavedSqlFolder) {async function collectSqlFilesRecursively(dir: string): Promise<string[]> {const { readDir } = await import("@tauri-apps/plugin-fs");- const { join, extname } = await import("@tauri-apps/api/path");+ const { join } = await import("@tauri-apps/api/path");const results: string[] = [];for (const entry of await readDir(dir)) {@@ -191,7 +191,7 @@ async function collectSqlFilesRecursively(dir: string): Promise<string[]> {continue;}if (!entry.isFile) continue;- if ((await extname(fullPath)).toLowerCase() !== ".sql") continue;+ if (!fullPath.toLowerCase().endsWith(".sql")) continue;results.push(fullPath);}return results;