25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(oceanbase): include triggers and events in object browser
t8y237caed909142
diff --git a/crates/dbx-core/src/schema/mod.rs b/crates/dbx-core/src/schema/mod.rsindex eb924987de..c712d66ebe 100644--- a/crates/dbx-core/src/schema/mod.rs+++ b/crates/dbx-core/src/schema/mod.rs@@ -7946,7 +7946,18 @@ async fn list_objects_once(} else if db_config.as_ref().is_some_and(db::starrocks::is_config) {db::starrocks::list_table_objects(p, database).await.map(unpaged_object_list)} else if db_config.as_ref().is_some_and(db::oceanbase_mysql::is_config) {- db::oceanbase_mysql::list_objects(p, database).await.map(unpaged_object_list)+ let mut objects = db::oceanbase_mysql::list_objects(p, database).await?;+ // The OceanBase MySQL branch only lists tables/materialized views and+ // routines; reuse the generic MySQL trigger/event queries so the object+ // browser counts match SHOW TRIGGERS / information_schema.EVENTS.+ let supplemental_types = vec!["TRIGGER".to_string(), "EVENT".to_string()];+ match db::mysql::list_objects(p, database, Some(&supplemental_types), None, None).await {+ Ok(supplemental) => objects.extend(supplemental.objects),+ Err(error) => log::warn!(+ "Skipping triggers/events for OceanBase database `{database}` in object browser: {error}"+ ),+ }+ Ok(unpaged_object_list(objects))} else if db_config.as_ref().is_some_and(db::mysql_compatible::uses_show_metadata) {db::mysql::list_table_objects_show(p, database).await.map(unpaged_object_list)} else if mysql_table_list_source_for_config(db_config.as_ref()) == MysqlTableListSource::ShowFullTables {