feat(postgres): support editing table owners

This commit is contained in:
zipg authored and GitHub committed 2026-08-23 01:39:23 +08:00
1 parent 4a1f3e7141
commit acc2137cde
32 files changed
+556 -36

No files matched your search

+7
View File
@@ -713,6 +713,13 @@ pub fn build_table_structure_change_sql(
Ok(dbx_core::table_structure_sql::build_table_structure_change_sql(options))
}
#[tauri::command]
pub fn build_table_owner_change_sql(
options: dbx_core::table_structure_sql::TableOwnerChangeSqlOptions,
) -> Result<dbx_core::table_structure_sql::TableStructureSqlResult, String> {
Ok(dbx_core::table_structure_sql::build_table_owner_change_sql(options))
}
#[tauri::command]
pub async fn preview_sqlite_table_structure_change(
state: State<'_, Arc<AppState>>,
+11
View File
@@ -574,6 +574,17 @@ pub async fn list_owners(
dbx_core::schema::list_owners_core(&state, &connection_id, &database, &schema).await
}
#[tauri::command]
pub async fn get_table_owner(
state: State<'_, Arc<AppState>>,
connection_id: String,
database: String,
schema: String,
table: String,
) -> Result<Option<String>, String> {
dbx_core::schema::get_table_owner_core(&state, &connection_id, &database, &schema, &table).await
}
#[tauri::command]
pub async fn list_extensions(
state: State<'_, Arc<AppState>>,