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(docs): read generated connection options in content check
github-actions[bot]51f7b1d8b5ab
diff --git a/docs/scripts/verify-doc-content.mjs b/docs/scripts/verify-doc-content.mjsindex 151b529a6e..c51314c527 100644--- a/docs/scripts/verify-doc-content.mjs+++ b/docs/scripts/verify-doc-content.mjs@@ -91,13 +91,15 @@ for (const file of files) {}const databaseSupportSource = fs.readFileSync(path.join(repositoryDir, "docs/data/databaseSupport.ts"), "utf8");-const connectionDialogSource = fs.readFileSync(path.join(repositoryDir, "apps/desktop/src/components/connection/ConnectionDialog.vue"), "utf8");+const connectionProfilesSource = fs.readFileSync(path.join(repositoryDir, "apps/desktop/src/types/generated/connectionProfiles.ts"), "utf8");const jdbcProductProfilesSource = fs.readFileSync(path.join(repositoryDir, "apps/desktop/src/lib/database/jdbcProductProfiles.ts"), "utf8");-const connectionOptionsMatch = connectionDialogSource.match(/const dbOptions: DbOption\[\] = \[([\s\S]*?)\n\];/);+const connectionOptionsMatch = connectionProfilesSource.match(+ /export const CONNECTION_PICKER_OPTIONS = \[([\s\S]*?)\n\] as const satisfies readonly ConnectionPickerOption\[\];/,+);const jdbcProductProfilesMatch = jdbcProductProfilesSource.match(/JDBC_PRODUCT_PROFILES = \[([^\]]*)\]/);if (!connectionOptionsMatch) {- errors.push("Unable to read database options from ConnectionDialog.vue");+ errors.push("Unable to read database options from connectionProfiles.ts");} else {const connectionModeIds = new Set(["custom_mysql", "custom_postgres"]);const connectionIds = [...connectionOptionsMatch[1].matchAll(/value: "([^"]+)"/g)]@@ -132,7 +134,7 @@ if (!connectionOptionsMatch) {.filter((id) => id !== "request");for (const [label, ids] of [- ["ConnectionDialog.vue", connectionIds],+ ["connectionProfiles.ts", connectionIds],["databaseSupport.ts", websiteIds],]) {const duplicates = ids.filter((id, index) => ids.indexOf(id) !== index);