Ce polardb pr 816#619
Merged
Merged
Conversation
…#816) - Add DBTypePolarDBMySQL constant with value "PolarDB For MySQL" - Add ParseDBType case branch for "PolarDB For MySQL" - Add DBTypePolarDBMySQL to supportedDataExportDBTypes whitelist - Add unit tests for ParseDBType and data export support
…h (#816) - convertDBType: map "PolarDB For MySQL" to "MYSQL" so ODC creates MySQL-type connections - SupportDBType: confirm PolarDB returns false (no Provision integration) - Unit tests: add PolarDB cases to Test_convertDBType and Test_SupportDBType
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
LordofAvernus
approved these changes
May 18, 2026
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.
User description
https://github.com/actiontech/dms-ee/issues/816
link https://github.com/actiontech/dms-ee/pull/833
Description
新增对
PolarDB For MySQL的 DB 类型支持修改常量定义、解析及数据导出白名单
更新工作台服务中 DB 类型转换逻辑
添加对应单元测试覆盖新功能
Diagram Walkthrough
File Walkthrough
const.go
添加 PolarDB For MySQL 支持逻辑internal/dms/pkg/constant/const.go
PolarDB For MySQL解析分支DBTypePolarDBMySQL常量sql_workbench_service.go
更新 DB 类型转换映射internal/sql_workbench/service/sql_workbench_service.go
PolarDB For MySQL映射返回 "MYSQL"const_test.go
测试新增 DB 类型支持internal/dms/pkg/constant/const_test.go
TestParseDBType_PolarDB测试函数sql_workbench_service_test.go
新增 DMS 转换单元测试internal/sql_workbench/service/sql_workbench_service_test.go
PolarDB For MySQL转换