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

+10
View File
@@ -64,6 +64,16 @@ pub async fn list_database_storage(
Ok(Json(result))
}
pub async fn list_xugu_tablespaces(
State(state): State<Arc<WebState>>,
Query(q): Query<SchemaQuery>,
) -> Result<Json<Vec<dbx_core::db::XuguTablespaceInfo>>, AppError> {
let result = dbx_core::schema::list_xugu_tablespaces_core(&state.app, &q.connection_id, q.database.as_deref())
.await
.map_err(AppError::from)?;
Ok(Json(result))
}
pub async fn get_sqlserver_completion_context(
State(state): State<Arc<WebState>>,
Query(q): Query<SchemaQuery>,