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

Function EffectsBuffer_AddEntityAddAttributeEffect

src/effects/effects.c:617–633  ·  view source on GitHub ↗

add an entity add new attribute effect to buffer

Source from the content-addressed store, hash-verified

615
616// add an entity add new attribute effect to buffer
617void EffectsBuffer_AddEntityAddAttributeEffect
618(
619 EffectsBuffer *buff, // effect buffer
620 GraphEntity *entity, // updated entity ID
621 Attribute_ID attr_id, // updated attribute ID
622 SIValue value, // value
623 GraphEntityType entity_type // entity type
624) {
625 // attribute was added
626 QueryCtx_GetResultSetStatistics()->properties_set++;
627
628 if(entity_type == GETYPE_NODE) {
629 EffectsBuffer_AddNodeUpdateEffect(buff, (Node*)entity, attr_id, value);
630 } else {
631 EffectsBuffer_AddEdgeUpdateEffect(buff, (Edge*)entity, attr_id, value);
632 }
633}
634
635// add an entity update attribute effect to buffer
636void EffectsBuffer_AddEntityUpdateAttributeEffect

Callers 1

EvalEntityUpdatesFunction · 0.85

Tested by

no test coverage detected