feat(data-grid): support manual reference display values

This commit is contained in:
zipg authored and GitHub committed 2026-08-23 01:38:50 +08:00
1 parent b74d49e982
commit 4a1f3e7141
24 files changed
+893 -90

No files matched your search

+18
View File
@@ -395,6 +395,24 @@ pub async fn list_indexes(
dbx_core::schema::list_indexes_core(&state, &connection_id, &database, &schema, &table).await
}
#[tauri::command]
pub async fn list_reference_key_columns(
state: State<'_, Arc<AppState>>,
connection_id: String,
database: String,
schema: String,
table: String,
catalog: Option<String>,
) -> Result<Vec<String>, String> {
if let Some(catalog) = external_doris_catalog(&state, &connection_id, catalog.as_deref()).await {
let indexes =
dbx_core::schema::list_doris_catalog_indexes_core(&state, &connection_id, &catalog, &database, &table)
.await?;
return Ok(dbx_core::schema::reference_key_columns_from_indexes(&indexes));
}
dbx_core::schema::list_reference_key_columns_core(&state, &connection_id, &database, &schema, &table).await
}
#[tauri::command]
pub async fn list_foreign_keys(
state: State<'_, Arc<AppState>>,