Skip to content

Commit

Permalink
Merge pull request #289 from actiontech/fix-issue1659
Browse files Browse the repository at this point in the history
cb add tbase
  • Loading branch information
ColdWaterLW authored Jul 31, 2024
2 parents 68e39d0 + 8de6532 commit 9b5ffc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/dms/biz/cloudbeaver.go
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ func (cu *CloudbeaverUsecase) GenerateCloudbeaverConnectionParams(dbService *DBS
err = cu.fillMySQLParams(config)
case constant.DBTypeTiDB:
err = cu.fillTiDBParams(config)
case constant.DBTypePostgreSQL:
case constant.DBTypePostgreSQL, constant.DBTypeTBase:
err = cu.fillPGSQLParams(config)
case constant.DBTypeSQLServer:
err = cu.fillMSSQLParams(config)
Expand Down
3 changes: 3 additions & 0 deletions internal/dms/pkg/constant/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ func ParseDBType(s string) (DBType, error) {
return DBTypeOceanBaseMySQL, nil
case "GoldenDB":
return DBTypeGoldenDB, nil
case "TBase":
return DBTypeTBase, nil
default:
return "", fmt.Errorf("invalid db type: %s", s)
}
Expand All @@ -142,6 +144,7 @@ const (
DBTypeOceanBaseMySQL DBType = "OceanBase For MySQL"
DBTypeTDSQLForInnoDB DBType = "TDSQL For InnoDB"
DBTypeGoldenDB DBType = "GoldenDB"
DBTypeTBase DBType = "TBase"
)

type FilterCondition struct {
Expand Down

0 comments on commit 9b5ffc8

Please sign in to comment.