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

Function _AST_MapCreateClauseReferences

src/ast/ast_build_reference_map.c:144–152  ·  view source on GitHub ↗

Add referenced aliases from CREATE clause.

Source from the content-addressed store, hash-verified

142
143// Add referenced aliases from CREATE clause.
144static void _AST_MapCreateClauseReferences(AST *ast, const cypher_astnode_t *create_clause) {
145 const cypher_astnode_t *pattern = cypher_ast_create_get_pattern(create_clause);
146 uint path_count = cypher_ast_pattern_npaths(pattern);
147 for(uint i = 0; i < path_count; i++) {
148 const cypher_astnode_t *path = cypher_ast_pattern_get_path(pattern, i);
149 bool force_mapping = _shouldForceMapping(path);
150 _AST_MapReferencedEntitiesInPath(ast, path, force_mapping);
151 }
152}
153
154// Maps entities in SET clauses that update an individual property.
155static void _AST_MapSetPropertyReferences(AST *ast, const cypher_astnode_t *set_item) {

Callers 1

Calls 2

_shouldForceMappingFunction · 0.85

Tested by

no test coverage detected