Skip to content

feat(sql_workbench): ODC workbench support for GoldenDB#610

Open
actiontech-bot wants to merge 3 commits into
mainfrom
dms/feat-814
Open

feat(sql_workbench): ODC workbench support for GoldenDB#610
actiontech-bot wants to merge 3 commits into
mainfrom
dms/feat-814

Conversation

@actiontech-bot
Copy link
Copy Markdown
Member

Fixes https://github.com/actiontech/dms-ee/issues/814

Summary

  • Add GoldenDB to MYSQL type mapping in convertDBType() for ODC datasource sync
  • Add GoldenDB to SupportDBType() so GoldenDB datasources enter ODC sync and EE provision flows
  • Add DefaultSchema field to ODC datasource create/update requests to avoid hardcoding information_schema
  • Add isSQLAuditSupportedDBType() to bypass SQL audit for DB types without SQLE plugin support
  • Add unit tests for all new functions and type mappings

… check #814

- Add GoldenDB -> MYSQL mapping in convertDBType(), consistent with
  TDSQL For InnoDB approach (MySQL protocol compatible)
- Add DBTypeGoldenDB to SupportDBType() so GoldenDB datasources enter
  ODC sync and EE provision flows
- Add unit test cases for both functions covering GoldenDB
…equests

GoldenDB does not provide the information_schema database that ODC
defaults to for MySQL-type connections, causing datasource status to be
INACTIVE. Add DefaultSchema field to CreateDatasourceRequest,
UpdateDatasourceRequest and datasourceBaseInfo so DMS can explicitly
specify a default schema when syncing datasources to ODC.

This change is paired with an ODC-side fix that stops hardcoding
information_schema as the default schema for all MySQL-dialect types.

Refs: actiontech/dms-ee#814
SQLE lacks plugins for GoldenDB, TBase, DB2, Hive, GaussDB etc. The
AuditMiddleware previously blocked all /streamExecute requests when
audit was disabled (error: "please enable SQL audit first") and failed
when audit was enabled (SQLE cannot audit unsupported types). This made
SQL execution completely unusable for GoldenDB data sources.

Add isSQLAuditSupportedDBType() to check whether the data source's
db_type has a corresponding SQLE audit plugin. For unsupported types
the middleware now passes the request through to ODC without auditing.
Supported types (MySQL, Oracle, OceanBase MySQL, TiDB, PostgreSQL,
SQL Server, DM) retain their existing audit behavior unchanged.

Fixes actiontech/dms-ee#814
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.

2 participants