feat(xugu): expose table child metadata

This commit is contained in:
Elias authored and GitHub committed 2026-07-24 16:47:13 +08:00
1 parent 6ddfa8bd24
commit 0362fef273
33 files changed
+1269 -33

No files matched your search

+33
View File
@@ -385,6 +385,39 @@ pub async fn list_triggers(
dbx_core::schema::list_triggers_core(&state, &connection_id, &database, &schema, &table).await
}
#[tauri::command]
pub async fn list_constraints(
state: State<'_, Arc<AppState>>,
connection_id: String,
database: String,
schema: String,
table: String,
) -> Result<Vec<dbx_core::db::ConstraintInfo>, String> {
dbx_core::schema::list_constraints_core(&state, &connection_id, &database, &schema, &table).await
}
#[tauri::command]
pub async fn list_partitions(
state: State<'_, Arc<AppState>>,
connection_id: String,
database: String,
schema: String,
table: String,
) -> Result<Vec<dbx_core::db::PartitionInfo>, String> {
dbx_core::schema::list_partitions_core(&state, &connection_id, &database, &schema, &table).await
}
#[tauri::command]
pub async fn list_subpartitions(
state: State<'_, Arc<AppState>>,
connection_id: String,
database: String,
schema: String,
table: String,
) -> Result<Vec<dbx_core::db::SubpartitionInfo>, String> {
dbx_core::schema::list_subpartitions_core(&state, &connection_id, &database, &schema, &table).await
}
#[tauri::command]
pub async fn get_table_ddl(
state: State<'_, Arc<AppState>>,