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

Function Proc_PropKeysStep

src/procedures/proc_property_keys.c:43–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43SIValue *Proc_PropKeysStep
44(
45 ProcedureCtx *ctx
46) {
47 ASSERT(ctx->privateData != NULL);
48
49 RelationsContext *pdata = (RelationsContext *)ctx->privateData;
50
51 // depleted?
52 if(pdata->prop_id >= GraphContext_AttributeCount(pdata->gc))
53 return NULL;
54
55 // get attribute name
56 char *name = (char *)GraphContext_GetAttributeString(pdata->gc, pdata->prop_id++);
57 pdata->output[0] = SI_ConstStringVal(name);
58 return pdata->output;
59}
60
61ProcedureResult Proc_PropKeysFree
62(

Callers

nothing calls this directly

Calls 3

SI_ConstStringValFunction · 0.85

Tested by

no test coverage detected