Register procedures.
| 25 | |
| 26 | // Register procedures. |
| 27 | void 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 | |
| 48 | ProcedureCtx *ProcCtxNew(const char *name, |
| 49 | unsigned int argc, |