feat(xugu): expose tablespaces and datafiles in tree

This commit is contained in:
Elias authored and GitHub committed 2026-09-01 00:34:12 +08:00
1 parent afe3b3f3c2
commit 351a8b699b
32 files changed
+811 -4

No files matched your search

+9
View File
@@ -36,6 +36,15 @@ pub async fn list_database_storage(
dbx_core::schema::list_database_storage_core(&state, &connection_id, &databases).await
}
#[tauri::command]
pub async fn list_xugu_tablespaces(
state: State<'_, Arc<AppState>>,
connection_id: String,
database: Option<String>,
) -> Result<Vec<db::XuguTablespaceInfo>, String> {
dbx_core::schema::list_xugu_tablespaces_core(&state, &connection_id, database.as_deref()).await
}
#[tauri::command]
pub async fn get_sqlserver_completion_context(
state: State<'_, Arc<AppState>>,
+1
View File
@@ -1812,6 +1812,7 @@ pub fn run() {
commands::schema::list_databases,
commands::schema::list_database_metadata,
commands::schema::list_database_storage,
commands::schema::list_xugu_tablespaces,
commands::schema::get_sqlserver_completion_context,
commands::schema::list_doris_catalogs,
commands::schema::list_doris_catalog_databases,