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(sqlite): prevent file launch from overwriting existing connections

t8y2b4e8190b52d6
diff --git a/apps/desktop/src/App.vue b/apps/desktop/src/App.vue
index 30540d9db9..328a922884 100644
--- a/apps/desktop/src/App.vue
+++ b/apps/desktop/src/App.vue
@@ -493,6 +493,7 @@ function getDbTypeFromPath(path: string): "sqlite" | "duckdb" | null {
async function openDbFilePath(path: string) {
if (!isTauriRuntime()) return;
+ await connectionStore.initFromDisk();
try {
const name = path.split("/").pop()?.split("\\").pop() || path;
const dbType = getDbTypeFromPath(path);
@@ -550,6 +551,7 @@ async function openPendingDbFiles() {
}
async function openConnectionDeepLink(url: string) {
+ await connectionStore.initFromDisk();
try {
const draft = parseConnectionDeepLink(url);
if (!draft) return;