MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / flat

Method flat

crates/gitql-core/src/object.rs:36–44  ·  view source on GitHub ↗

Flat the list of current groups into one main group

(&mut self)

Source from the content-addressed store, hash-verified

34impl GitQLObject {
35 /// Flat the list of current groups into one main group
36 pub fn flat(&mut self) {
37 let mut rows: Vec<Row> = vec![];
38 for group in &mut self.groups {
39 rows.append(&mut group.rows);
40 }
41
42 self.groups.clear();
43 self.groups.push(Group { rows })
44 }
45
46 /// Returns true of there is no groups
47 pub fn is_empty(&self) -> bool {

Callers 6

evaluate_select_queryFunction · 0.80
execute_statementFunction · 0.80
execute_having_statementFunction · 0.80
execute_limit_statementFunction · 0.80
execute_offset_statementFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected