Skip to content

Commit

Permalink
Merge pull request #1916 from actiontech/issue-1915
Browse files Browse the repository at this point in the history
support tdsql
  • Loading branch information
sjjian authored Oct 16, 2023
2 parents 95e46eb + fde5aa1 commit d545001
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion sqle/api/cloudbeaver_wrapper/service/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func GenerateCloudBeaverInstanceParams(sqleInst *sqleModel.Instance, project *sq
config := generateCommonCloudBeaverConfigParams(sqleInst, project)

switch sqleInst.DbType {
case driverV2.DriverTypeMySQL:
case driverV2.DriverTypeMySQL, driverV2.DriverTypeTDSQLForInnoDB:
err = fillMySQLParams(config)
case driverV2.DriverTypeTiDB:
err = fillTiDBParams(config)
Expand Down
15 changes: 8 additions & 7 deletions sqle/driver/v2/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ const (
)

const (
DriverTypeMySQL = "MySQL"
DriverTypePostgreSQL = "PostgreSQL"
DriverTypeTiDB = "TiDB"
DriverTypeSQLServer = "SQL Server"
DriverTypeOracle = "Oracle"
DriverTypeDB2 = "DB2"
DriverTypeOceanBase = "OceanBase For MySQL"
DriverTypeMySQL = "MySQL"
DriverTypePostgreSQL = "PostgreSQL"
DriverTypeTiDB = "TiDB"
DriverTypeSQLServer = "SQL Server"
DriverTypeOracle = "Oracle"
DriverTypeDB2 = "DB2"
DriverTypeOceanBase = "OceanBase For MySQL"
DriverTypeTDSQLForInnoDB = "TDSQL For InnoDB"
)

type DriverNotSupportedError struct {
Expand Down

0 comments on commit d545001

Please sign in to comment.