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

Function Schema_New

src/schema/schema.c:287–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287Schema *Schema_New
288(
289 SchemaType type,
290 int id,
291 const char *name
292) {
293 ASSERT(name != NULL);
294
295 Schema *s = rm_calloc(1, sizeof(Schema));
296
297 s->id = id;
298 s->type = type;
299 s->name = rm_strdup(name);
300 s->constraints = array_new(Constraint, 0);
301
302 return s;
303}
304
305int Schema_ID
306(

Callers 7

_RdbLoadSchemaFunction · 0.85
_RdbLoadSchemaFunction · 0.85
_RdbLoadSchemaFunction · 0.85
_RdbLoadSchemaFunction · 0.85
_RdbLoadSchemaFunction · 0.85
_RdbLoadSchemaFunction · 0.85
GraphContext_AddSchemaFunction · 0.85

Calls 2

rm_callocFunction · 0.85
rm_strdupFunction · 0.85

Tested by

no test coverage detected