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

Function GraphContext_SchemaCount

src/graph/graphcontext.c:337–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337unsigned short GraphContext_SchemaCount(const GraphContext *gc, SchemaType t) {
338 ASSERT(gc);
339 if(t == SCHEMA_NODE) return array_len(gc->node_schemas);
340 else return array_len(gc->relation_schemas);
341}
342
343// enable all constraints
344void GraphContext_EnableConstrains

Callers 6

RdbSaveGraphSchema_v13Function · 0.85
Proc_ConstraintsInvokeFunction · 0.85
Proc_LabelsStepFunction · 0.85
Proc_RelationsStepFunction · 0.85
Proc_IndexesInvokeFunction · 0.85

Calls 1

array_lenFunction · 0.85

Tested by

no test coverage detected