| 39 | } |
| 40 | |
| 41 | SIValue *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 | |
| 59 | ProcedureResult Proc_RelationsFree |
| 60 | ( |
nothing calls this directly
no test coverage detected