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

Function _index_operation

src/commands/cmd_query.c:243–260  ·  view source on GitHub ↗

handle index/constraint operation either index/constraint creation or index/constraint deletion

Source from the content-addressed store, hash-verified

241// handle index/constraint operation
242// either index/constraint creation or index/constraint deletion
243static 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

Callers 1

_ExecuteQueryFunction · 0.85

Calls 3

_index_operation_createFunction · 0.85
_index_operation_deleteFunction · 0.85
ErrorCtx_SetErrorFunction · 0.85

Tested by

no test coverage detected