feat(constant): add DBTypeOpenGauss + ParseDBType case for openGauss#629
Open
actiontech-bot wants to merge 3 commits into
Open
feat(constant): add DBTypeOpenGauss + ParseDBType case for openGauss#629actiontech-bot wants to merge 3 commits into
actiontech-bot wants to merge 3 commits into
Conversation
…ussDB regression (#2905)
…(#2905) 按 fix_session_20260526_053311 用户反馈: > 禁止将opengauss单列出来,它和华为云GaussDB对于sqle平台来说是一样的, > 都是通过gaussdb插件连接管理。 > 理论上数据库结构对比功能不涉及dms、sqle代码改动。 回退两个 commit: - c6e74c2 feat(constant): add DBTypeOpenGauss + ParseDBType case for openGauss - 4e48dee test(constant): assert ParseDBType resolves openGauss three-case openGauss 不再作为独立 DBType;GaussDB / openGauss 统一为 DBTypeGaussDB="GaussDB" (通过 GitLab sqle-gaussdb-plugin 同一 PluginName 连接)。dms 代码恢复零改动状态。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
为 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之后ParseDBTypeswitch 中追加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/...通过影响面