handle index/constraint operation either index/constraint creation or index/constraint deletion
| 241 | // handle index/constraint operation |
| 242 | // either index/constraint creation or index/constraint deletion |
| 243 | static void _index_operation |
| 244 | ( |
| 245 | RedisModuleCtx *ctx, |
| 246 | GraphContext *gc, |
| 247 | AST *ast, |
| 248 | ExecutionType exec_type |
| 249 | ) { |
| 250 | switch(exec_type) { |
| 251 | case EXECUTION_TYPE_INDEX_CREATE: |
| 252 | _index_operation_create(ctx, gc, ast); |
| 253 | break; |
| 254 | case EXECUTION_TYPE_INDEX_DROP: |
| 255 | _index_operation_delete(gc, ast); |
| 256 | break; |
| 257 | default: |
| 258 | ErrorCtx_SetError("ERR Encountered unknown query execution type."); |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | //------------------------------------------------------------------------------ |
| 263 | // Query timeout |
no test coverage detected