feat(postgres): list user-defined types with details and DDL for PG-family databases

This commit is contained in:
amwps290 authored and GitHub committed 2026-08-11 15:00:24 +08:00
1 parent 0c6c1fada2
commit 154c460657
59 files changed
+6538 -150

No files matched your search

+13
View File
@@ -240,6 +240,8 @@ pub async fn list_objects(
updated_at: None,
parent_schema: table.parent_schema,
parent_name: table.parent_name,
custom_type_kind: None,
has_members: None,
trigger: None,
xugu_type_members_expandable: None,
})
@@ -310,6 +312,17 @@ pub async fn get_object_source(
.await
}
#[tauri::command]
pub async fn get_custom_type_details(
state: State<'_, Arc<AppState>>,
connection_id: String,
database: String,
schema: String,
name: String,
) -> Result<db::CustomTypeDetails, String> {
dbx_core::schema::get_custom_type_details_core(&state, &connection_id, &database, &schema, &name).await
}
#[tauri::command]
pub async fn get_columns(
state: State<'_, Arc<AppState>>,
+1
View File
@@ -1644,6 +1644,7 @@ pub fn run() {
commands::schema::list_completion_objects,
commands::schema::completion_assistant_search,
commands::schema::get_object_source,
commands::schema::get_custom_type_details,
commands::schema::list_schemas,
commands::schema::list_schema_infos,
commands::schema::list_data_types,