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: only show configured database in sidebar when specified (#160)
t8y2e83a3bbab9d1
diff --git a/src/stores/connectionStore.ts b/src/stores/connectionStore.tsindex ca92a5ed18..0ef56ca4b5 100644--- a/src/stores/connectionStore.ts+++ b/src/stores/connectionStore.ts@@ -361,7 +361,11 @@ export const useConnectionStore = defineStore("connection", () => {node.isLoading = true;try {await ensureConnected(connectionId);- const databases = await api.listDatabases(connectionId);+ let databases = await api.listDatabases(connectionId);+ const config = getConfig(connectionId);+ if (config?.database) {+ databases = databases.filter((db) => db.name === config.database);+ }setChildren(node,databases.map((db) => ({