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

Function _NewEdgeCreateCtx

src/ast/ast_build_op_contexts.c:15–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include "../query_ctx.h"
14
15static inline EdgeCreateCtx _NewEdgeCreateCtx
16(
17 GraphContext *gc,
18 const QGEdge *e,
19 const cypher_astnode_t *edge
20) {
21 const cypher_astnode_t *props = cypher_ast_rel_pattern_get_properties(edge);
22
23 EdgeCreateCtx new_edge = { .alias = e->alias,
24 .relation = e->reltypes[0],
25 .reltypeId = e->reltypeIDs[0],
26 .properties = PropertyMap_New(props),
27 .src = e->src->alias,
28 .dest = e->dest->alias
29 };
30 return new_edge;
31}
32
33static inline NodeCreateCtx _NewNodeCreateCtx
34(

Callers 1

AST_PreparePathCreationFunction · 0.85

Calls 1

PropertyMap_NewFunction · 0.85

Tested by

no test coverage detected