MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / AST_IsEager

Function AST_IsEager

src/ast/ast.c:222–236  ·  view source on GitHub ↗

checks if a query contains an ast-node corresponding to an eager operation

Source from the content-addressed store, hash-verified

220
221// checks if a query contains an ast-node corresponding to an eager operation
222bool AST_IsEager
223(
224 const cypher_astnode_t *root
225) {
226 ASSERT(cypher_astnode_type(root) == CYPHER_AST_QUERY);
227 uint n_clauses = cypher_ast_query_nclauses(root);
228
229 for(uint i = 0; i < n_clauses; i++) {
230 if(_clause_is_eager(cypher_ast_query_get_clause(root, i))) {
231 return true;
232 }
233 }
234
235 return false;
236}
237
238inline bool AST_ContainsClause
239(

Callers 2

_clause_is_eagerFunction · 0.85

Calls 1

_clause_is_eagerFunction · 0.85

Tested by

no test coverage detected