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

Function Proc_Register

src/procedures/procedure.c:27–46  ·  view source on GitHub ↗

Register procedures.

Source from the content-addressed store, hash-verified

25
26// Register procedures.
27void Proc_Register() {
28 __procedures = raxNew();
29 _procRegister("db.labels", Proc_LabelsCtx);
30 _procRegister("db.indexes", Proc_IndexesCtx);
31 _procRegister("db.constraints", Proc_ConstraintsCtx);
32 _procRegister("db.propertyKeys", Proc_PropKeysCtx);
33 _procRegister("dbms.procedures", Proc_ProceduresCtx);
34 _procRegister("db.relationshipTypes", Proc_RelationsCtx);
35
36 // Register graph algorithms.
37 _procRegister("algo.BFS", Proc_BFS_Ctx);
38 _procRegister("algo.pageRank", Proc_PagerankCtx);
39 _procRegister("algo.SPpaths", Proc_SPpathCtx);
40 _procRegister("algo.SSpaths", Proc_SSpathCtx);
41
42 // Register FullText Search generator.
43 _procRegister("db.idx.fulltext.drop", Proc_FulltextDropIdxGen);
44 _procRegister("db.idx.fulltext.queryNodes", Proc_FulltextQueryNodeGen);
45 _procRegister("db.idx.fulltext.createNodeIndex", Proc_FulltextCreateNodeIdxGen);
46}
47
48ProcedureCtx *ProcCtxNew(const char *name,
49 unsigned int argc,

Callers 2

RedisModule_OnLoadFunction · 0.85
setupFunction · 0.85

Calls 1

_procRegisterFunction · 0.85

Tested by 1

setupFunction · 0.68