feat(postgres): support concurrent index creation

This commit is contained in:
jearhe authored and GitHub committed 2026-08-17 16:31:44 +08:00
1 parent ebf412b144
commit aa6d60533c
38 files changed
+1917 -34

No files matched your search

+22
View File
@@ -453,6 +453,28 @@ pub async fn list_partitions(
dbx_core::schema::list_partitions_core(&state, &connection_id, &database, &schema, &table).await
}
#[tauri::command]
pub async fn get_table_partition_status(
state: State<'_, Arc<AppState>>,
connection_id: String,
database: String,
schema: String,
table: String,
) -> Result<dbx_core::schema::TablePartitionStatus, String> {
dbx_core::schema::table_partition_status_core(&state, &connection_id, &database, &schema, &table).await
}
#[tauri::command]
pub async fn list_invalid_indexes(
state: State<'_, Arc<AppState>>,
connection_id: String,
database: String,
schema: String,
table: String,
) -> Result<Vec<String>, String> {
dbx_core::schema::list_invalid_indexes_core(&state, &connection_id, &database, &schema, &table).await
}
#[tauri::command]
pub async fn list_subpartitions(
state: State<'_, Arc<AppState>>,
+2
View File
@@ -1662,6 +1662,8 @@ pub fn run() {
commands::schema::list_triggers,
commands::schema::list_constraints,
commands::schema::list_partitions,
commands::schema::get_table_partition_status,
commands::schema::list_invalid_indexes,
commands::schema::list_subpartitions,
commands::schema::get_table_ddl,
commands::schema::list_functions,