Parse a multi-row response from `SHOW GRAPH STATS` into a vec of `GraphStats`. Empty rows produce an empty vec. Column-shape mismatches are surfaced as errors — no silent fallbacks.
(
columns: &[String],
rows: &[Vec<nodedb_types::value::Value>],
)
| 142 | /// `GraphStats`. Empty rows produce an empty vec. Column-shape mismatches |
| 143 | /// are surfaced as errors — no silent fallbacks. |
| 144 | pub(crate) fn parse_native_graph_stats( |
| 145 | columns: &[String], |
| 146 | rows: &[Vec<nodedb_types::value::Value>], |
| 147 | ) -> NodeDbResult<Vec<GraphStats>> { |
| 148 | GraphStats::parse_show_stats_response(columns, rows) |
| 149 | } |
| 150 | |
| 151 | #[cfg(test)] |
| 152 | mod tests { |
no outgoing calls