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

Function _is_updating_clause

src/ast/ast_validations.c:1384–1396  ·  view source on GitHub ↗

returns true if the clause is an updating clause, false otherwise

Source from the content-addressed store, hash-verified

1382
1383// returns true if the clause is an updating clause, false otherwise
1384static bool _is_updating_clause
1385(
1386 const cypher_astnode_t *clause // clause
1387) {
1388 cypher_astnode_type_t type = cypher_astnode_type(clause);
1389
1390 return type == CYPHER_AST_CREATE ||
1391 type == CYPHER_AST_MERGE ||
1392 type == CYPHER_AST_DELETE ||
1393 type == CYPHER_AST_SET ||
1394 type == CYPHER_AST_REMOVE ||
1395 type == CYPHER_AST_FOREACH;
1396}
1397
1398// validate a WITH clause
1399static VISITOR_STRATEGY _Validate_WITH_Clause

Callers 1

_ValidateClauseOrderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected