Skip to main content

execute

Function execute 

Source
pub async fn execute(
    chain: &RequestInterceptorChain,
    system: ActorSystem,
    engine: StandardEngine,
    ctx: RequestContext,
    timeout: Duration,
    clock: &Clock,
) -> ExecuteResult<(Vec<Frame>, Duration)>
Expand description

Execute a database operation with interceptor support.

This is the single entry point for all protocol handlers. Interceptors run before and after the engine dispatch:

  1. pre_execute — may reject the request or mutate identity/metadata
  2. Engine dispatch (query / command / admin / subscribe)
  3. post_execute — observes result and duration (fire-and-forget)

When the interceptor chain is empty, steps 1 and 3 are skipped.