fix(oracle): export portable table DDL

This commit is contained in:
zipg authored and GitHub committed 2026-08-17 14:45:25 +08:00
1 parent 1cdee024c2
commit db7463eb70
13 files changed
+241 -30

No files matched your search

+12
View File
@@ -28,6 +28,7 @@ pub struct SchemaQuery {
pub apply_visible_filter: Option<bool>,
pub client_session_id: Option<String>,
pub include_postgres_access: Option<bool>,
pub portable: Option<bool>,
}
#[derive(Deserialize)]
@@ -646,6 +647,17 @@ pub async fn get_ddl(
dbx_core::schema::get_doris_catalog_table_ddl_core(&state.app, &q.connection_id, &catalog, database, table)
.await
.map_err(AppError::from)?
} else if q.portable.unwrap_or(false) {
dbx_core::schema::get_table_export_ddl_core(
&state.app,
&q.connection_id,
database,
schema,
table,
q.object_type,
)
.await
.map_err(AppError::from)?
} else if q.include_postgres_access.unwrap_or(false) {
dbx_core::schema::get_table_display_ddl_core(
&state.app,