set timeout for query execution
| 272 | |
| 273 | // set timeout for query execution |
| 274 | CronTaskHandle Query_SetTimeOut(uint timeout, ExecutionPlan *plan) { |
| 275 | // increase execution plan ref count |
| 276 | return Cron_AddTask(timeout, QueryTimedOut, NULL, plan); |
| 277 | } |
| 278 | |
| 279 | inline static bool _readonly_cmd_mode(CommandCtx *ctx) { |
| 280 | return strcasecmp(CommandCtx_GetCommandName(ctx), "graph.RO_QUERY") == 0; |
no test coverage detected