Skip to content

feat(constant): add DBTypeOpenGauss + ParseDBType case for openGauss#629

Open
actiontech-bot wants to merge 2 commits into
mainfrom
fix-2905-gaussdb-opengauss-structure-diff
Open

feat(constant): add DBTypeOpenGauss + ParseDBType case for openGauss#629
actiontech-bot wants to merge 2 commits into
mainfrom
fix-2905-gaussdb-opengauss-structure-diff

Conversation

@actiontech-bot
Copy link
Copy Markdown
Member

概述

为 DMS 增加 DBTypeOpenGauss = "openGauss" 常量与 ParseDBType 大小写宽容分支,使 DMS 能识别并管理 openGauss 类型数据源,对接 sqle-gaussdb-plugin 与 sqle 主仓的 DriverTypeOpenGauss 新增常量。

关联 EE 仓库主 Issue:actiontech/sqle-ee#2905

变更

  • internal/dms/pkg/constant/const.go
    • DBType* 常量区域新增 DBTypeOpenGauss DBType = "openGauss",紧跟 DBTypeGaussDB 之后
    • ParseDBType switch 中追加 case "openGauss", "OPENGAUSS", "opengauss" 分支,大小写宽容策略与现有 GaussDB 分支一致
    • 不改 supportedDataExportDBTypes 白名单(本期 openGauss 不纳入 data_export,design §17.4 决策 2)
  • internal/dms/pkg/constant/const_test.go:新增 TestParseDBType_OpenGauss 共 6 条 map case,覆盖 openGauss 三种大小写 + GaussDB / GaussDB for MySQL 回归 + Unknown 错误返回

测试

  • go test ./internal/dms/pkg/constant/... 全部通过
  • go vet ./internal/dms/pkg/constant/... 通过

影响面

  • 仅新增常量与解析分支;无 schema 变更、无存量数据回填、无默认数据集合变更
  • 已确认无启动钩子函数被新增方法(data-upgrade skill 扫描通过)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants