feat(xugu): expose object type members in schema tree

This commit is contained in:
Elias authored and GitHub committed 2026-08-11 02:12:22 +08:00
1 parent d7e93453c7
commit 1b37e97486
30 files changed
+1364 -63

No files matched your search

@@ -47,6 +47,7 @@ pub async fn list_objects(pool: &MySqlPool, database: &str) -> Result<Vec<Object
updated_at: None,
parent_schema: table.parent_schema,
parent_name: table.parent_name,
xugu_type_members_expandable: None,
})
.collect();
@@ -108,6 +109,7 @@ fn plugin_object(
updated_at: None,
parent_schema: None,
parent_name: None,
xugu_type_members_expandable: None,
})
}
+3
View File
@@ -2959,6 +2959,7 @@ fn row_to_object(row: &mysql_async::Row, database: &str) -> ObjectInfo {
updated_at: get_opt_str(row, "updated_at"),
parent_schema: get_opt_str(row, "parent_schema"),
parent_name: get_opt_str(row, "parent_name"),
xugu_type_members_expandable: None,
}
}
@@ -3229,6 +3230,7 @@ fn table_infos_to_objects(
updated_at: meta.and_then(|meta| meta.updated_at.clone()),
parent_schema: table.parent_schema,
parent_name: table.parent_name,
xugu_type_members_expandable: None,
}
})
.collect()
@@ -5375,6 +5377,7 @@ mod tests {
updated_at: None,
parent_schema: None,
parent_name: None,
xugu_type_members_expandable: None,
}
}
+1
View File
@@ -131,6 +131,7 @@ pub async fn list_objects(pool: &mysql_async::Pool, schema: &str) -> Result<Vec<
updated_at: None,
parent_schema: None,
parent_name: None,
xugu_type_members_expandable: None,
})
.collect())
}
+1
View File
@@ -3122,6 +3122,7 @@ pub async fn list_objects(pool: &Pool, schema: &str) -> Result<Vec<ObjectInfo>,
parent_schema: row.try_get::<_, Option<String>>(5).ok().flatten().filter(|s| !s.is_empty()),
parent_name: row.try_get::<_, Option<String>>(6).ok().flatten().filter(|s| !s.is_empty()),
signature: row.try_get::<_, Option<String>>(7).ok().flatten(),
xugu_type_members_expandable: None,
})
.collect())
}
+1
View File
@@ -19,6 +19,7 @@ pub async fn list_objects(pool: &Pool, schema: &str) -> Result<Vec<ObjectInfo>,
updated_at: None,
parent_schema: None,
parent_name: None,
xugu_type_members_expandable: None,
})
.collect())
}
+1
View File
@@ -2324,6 +2324,7 @@ pub async fn list_objects(client: &mut SqlServerClient, schema: &str) -> Result<
updated_at: row.get::<chrono::NaiveDateTime, _>(3).map(|value| value.to_string()),
parent_schema: None,
parent_name: None,
xugu_type_members_expandable: None,
})
.collect())
}