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

Function execute_where_statement

crates/gitql-engine/src/engine_executor.rs:214–231  ·  view source on GitHub ↗
(
    env: &mut Environment,
    statement: &WhereStatement,
    gitql_object: &mut GitQLObject,
)

Source from the content-addressed store, hash-verified

212}
213
214fn execute_where_statement(
215 env: &mut Environment,
216 statement: &WhereStatement,
217 gitql_object: &mut GitQLObject,
218) -> Result<(), String> {
219 if gitql_object.is_empty() {
220 return Ok(());
221 }
222
223 apply_filter_operation(
224 env,
225 &statement.condition,
226 &gitql_object.titles,
227 &mut gitql_object.groups[0].rows,
228 )?;
229
230 Ok(())
231}
232
233fn execute_having_statement(
234 env: &mut Environment,

Callers 1

execute_statementFunction · 0.85

Calls 2

apply_filter_operationFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…