feat(sidebar): extend filters to views and routines

This commit is contained in:
jearhe authored and GitHub committed 2026-08-23 01:38:19 +08:00
1 parent 3dbcc2d0dc
commit b74d49e982
20 files changed
+268 -46

No files matched your search

+6 -1
View File
@@ -240,6 +240,10 @@ pub async fn list_objects(
let object_types = q.object_types.as_ref().map(|value| {
value.split(',').map(str::trim).filter(|value| !value.is_empty()).map(str::to_string).collect::<Vec<_>>()
});
let table_name_filter = q
.table_name_filter
.as_deref()
.and_then(|value| serde_json::from_str::<dbx_core::schema::TableNameFilter>(value).ok());
let result = if let Some(catalog) = external_doris_catalog(&state, &q.connection_id, q.catalog.as_deref()).await {
let tables = dbx_core::schema::list_doris_catalog_tables_core(
&state.app,
@@ -250,7 +254,7 @@ pub async fn list_objects(
q.limit,
q.offset,
object_types.as_deref(),
None,
table_name_filter.as_ref(),
)
.await
.map_err(AppError::from)?;
@@ -283,6 +287,7 @@ pub async fn list_objects(
q.limit,
q.offset,
object_types.as_deref(),
table_name_filter.as_ref(),
)
.await
.map_err(AppError::from)?