checks if a query contains an ast-node corresponding to an eager operation
| 220 | |
| 221 | // checks if a query contains an ast-node corresponding to an eager operation |
| 222 | bool 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 | |
| 238 | inline bool AST_ContainsClause |
| 239 | ( |
no test coverage detected