Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions internal/dms/pkg/constant/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ func ParseDBType(s string) (DBType, error) {
return DBTypeGaussDB, nil
case "HANA":
return DBTypeHANA, nil
case "PolarDB For MySQL":
return DBTypePolarDBForMySQL, nil
case "OceanBase For Oracle":
return DBTypeOceanBaseOracle, nil

default:
return "", fmt.Errorf("invalid db type: %s", s)
Expand All @@ -272,7 +276,9 @@ const (
DBTypeHive DBType = "Hive"
DBTypeDM DBType = "达梦(DM)"
DBTypeGaussDB DBType = "GaussDB / openGauss"
DBTypeHANA DBType = "HANA"
DBTypeHANA DBType = "HANA"
DBTypePolarDBForMySQL DBType = "PolarDB For MySQL"
DBTypeOceanBaseOracle DBType = "OceanBase For Oracle"
)

var supportedDataExportDBTypes = map[DBType]struct{}{
Expand All @@ -290,7 +296,9 @@ var supportedDataExportDBTypes = map[DBType]struct{}{
DBTypeTBase: {},
DBTypeGaussDB: {},
DBTypeDB2: {},
DBTypeHANA: {},
DBTypeHANA: {},
DBTypePolarDBForMySQL: {},
DBTypeOceanBaseOracle: {},
}

func CheckDBTypeIfDataExportSupported(dbtype string) bool {
Expand Down