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

Function execute_qualify_statement

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

Source from the content-addressed store, hash-verified

256}
257
258fn execute_qualify_statement(
259 env: &mut Environment,
260 statement: &QualifyStatement,
261 gitql_object: &mut GitQLObject,
262) -> Result<(), String> {
263 if gitql_object.is_empty() {
264 return Ok(());
265 }
266
267 apply_filter_operation(
268 env,
269 &statement.condition,
270 &gitql_object.titles,
271 &mut gitql_object.groups[0].rows,
272 )?;
273
274 Ok(())
275}
276
277fn execute_limit_statement(
278 statement: &LimitStatement,

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…