Skip to content

feat(data_export): register PolarDB For MySQL and OceanBase For Oracle as supported DB types#617

Open
LordofAvernus wants to merge 1 commit into
mainfrom
dms/feat-2815
Open

feat(data_export): register PolarDB For MySQL and OceanBase For Oracle as supported DB types#617
LordofAvernus wants to merge 1 commit into
mainfrom
dms/feat-2815

Conversation

@LordofAvernus
Copy link
Copy Markdown
Collaborator

@LordofAvernus LordofAvernus commented May 13, 2026

User description

Summary

  • Register DBTypePolarDBForMySQL and DBTypeOceanBaseOracle as new DB type constants
  • Add both types to ParseDBType function and supportedDataExportDBTypes map
  • Enables data export support for PolarDB For MySQL and OceanBase For Oracle instances

Fixes https://github.com/actiontech/sqle-ee/issues/2815


Description

  • 新增 PolarDB For MySQL 注册逻辑

  • 新增 OceanBase For Oracle 注册逻辑

  • 更新常量定义和支持数据源映射


Diagram Walkthrough

flowchart LR
  A["更新 ParseDBType 函数"] --> B["添加 PolarDB For MySQL 分支"]
  A --> C["添加 OceanBase For Oracle 分支"]
  D["更新常量定义"] --> E["新增 PolarDB For MySQL 常量"]
  D --> F["新增 OceanBase For Oracle 常量"]
  G["更新支持数据导出DB类型"] --> H["在映射中新增新类型"]
Loading

File Walkthrough

Relevant files
Enhancement
const.go
增加新数据库类型注册逻辑                                                                                         

internal/dms/pkg/constant/const.go

  • 在 ParseDBType 函数中增加新分支
  • 在常量定义中添加新DB类型
  • 在支持数据导出映射中更新新类型
+10/-2   

@actiontech-bot actiontech-bot requested a review from iwanghc May 13, 2026 09:06
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 13, 2026

PR Reviewer Guide 🔍

(Review updated until commit 7fe0d70)

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ No major issues detected

@github-actions
Copy link
Copy Markdown

Failed to generate code suggestions for PR

@github-actions
Copy link
Copy Markdown

Persistent review updated to latest commit ca4678b

@github-actions
Copy link
Copy Markdown

PR Code Suggestions ✨

No code suggestions found for the PR.

@github-actions
Copy link
Copy Markdown

Persistent review updated to latest commit 7fe0d70

@github-actions
Copy link
Copy Markdown

PR Code Suggestions ✨

No code suggestions found for the PR.

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.

1 participant