feat(metadata): optimize agent metadata loading
This commit is contained in:
1 parent
8883a6b3b7
commit
e74782f651
65 files changed
+6192
-571
No files matched your search
@@ -782,8 +782,17 @@ pub async fn export_database_sql_core(
|
||||
let mut functions: Vec<String> = Vec::new();
|
||||
|
||||
if request.include_objects && request.selected_tables.is_empty() {
|
||||
if let Ok(objects) =
|
||||
crate::schema::list_objects_core(state, &request.connection_id, &request.database, &request.schema).await
|
||||
if let Ok(objects) = crate::schema::list_objects_core(
|
||||
state,
|
||||
&request.connection_id,
|
||||
&request.database,
|
||||
&request.schema,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
)
|
||||
.await
|
||||
{
|
||||
for obj in &objects {
|
||||
let ot = obj.object_type.to_uppercase();
|
||||
|
||||
Reference in new issue
Block a user