From 58d6acb2b1a561329409c2d88e56e2ff7ae7096f Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Sun, 3 May 2026 12:56:25 +0800 Subject: [PATCH] feat: add DM (Dameng) database support and compatibility hint --- src/components/connection/ConnectionDialog.vue | 9 ++++++++- src/i18n/locales/en.ts | 1 + src/i18n/locales/zh-CN.ts | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/connection/ConnectionDialog.vue b/src/components/connection/ConnectionDialog.vue index acbe2b77f..9f4ea18ea 100644 --- a/src/components/connection/ConnectionDialog.vue +++ b/src/components/connection/ConnectionDialog.vue @@ -102,6 +102,7 @@ const driverProfiles: Record = { mariadb: "mariadb", tidb: "tidb", oceanbase: "oceanbase", goldendb: "goldendb", opengauss: "opengauss", gaussdb: "gaussdb", kingbase: "kingbase", vastbase: "vastbase", doris: "doris", selectdb: "selectdb", starrocks: "starrocks", redshift: "redshift", - cockroachdb: "cockroachdb", tdengine: "tdengine", + cockroachdb: "cockroachdb", tdengine: "tdengine", dm: "dm", custom_mysql: "mysql", custom_postgres: "postgres", }; @@ -230,6 +231,7 @@ const pgCompat = [ { value: "gaussdb", label: "GaussDB" }, { value: "kingbase", label: "KingBase" }, { value: "vastbase", label: "Vastbase" }, + { value: "dm", label: "DM (Dameng)" }, { value: "redshift", label: "Redshift" }, { value: "cockroachdb", label: "CockroachDB" }, { value: "custom_postgres", label: "Custom" }, @@ -498,6 +500,11 @@ async function browseSshKeyPath() { +
+ +

{{ t('connection.dmCompatHint') }}

+
+
diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index 960c29b9d..c95f69b81 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -66,6 +66,7 @@ export default { sshKeyPassphrasePlaceholder: "Leave empty if key is not encrypted", sshKeyPathBrowse: "Browse", sshExposeLan: "Expose tunnel to LAN", + dmCompatHint: "Requires DM PG compatibility mode (set COMPATIBLE_MODE=7 in dm.ini and restart)", compatible: "Compatible", mainstream: "Popular", color: "Color", diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index a8a3785c7..ac8243560 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -68,6 +68,7 @@ export default { sshKeyPassphrasePlaceholder: "密钥未加密则留空", sshKeyPathBrowse: "浏览", sshExposeLan: "允许局域网访问隧道", + dmCompatHint: "需要开启达梦 PG 兼容模式(dm.ini 中设置 COMPATIBLE_MODE=7 并重启服务)", compatible: "兼容", mainstream: "主流", color: "颜色",