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

Function Proc_RelationsStep

src/procedures/proc_relations.c:41–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41SIValue *Proc_RelationsStep
42(
43 ProcedureCtx *ctx
44) {
45 ASSERT(ctx->privateData != NULL);
46
47 RelationsContext *pdata = (RelationsContext *)ctx->privateData;
48
49 // depleted?
50 if(pdata->schema_id >= GraphContext_SchemaCount(pdata->gc, SCHEMA_EDGE))
51 return NULL;
52
53 // get schema name
54 Schema *s = GraphContext_GetSchemaByID(pdata->gc, pdata->schema_id++, SCHEMA_EDGE);
55 pdata->output[0] = SI_ConstStringVal(Schema_GetName(s));
56 return pdata->output;
57}
58
59ProcedureResult Proc_RelationsFree
60(

Callers

nothing calls this directly

Calls 4

GraphContext_SchemaCountFunction · 0.85
SI_ConstStringValFunction · 0.85
Schema_GetNameFunction · 0.85

Tested by

no test coverage detected