pub async fn execute_command(
engine: StandardEngine,
statements: Vec<String>,
identity: Identity,
params: Params,
timeout: Duration,
) -> ExecuteResult<Vec<Frame>>Expand description
Execute a command on the blocking thread pool with timeout.
Commands are write operations (INSERT, UPDATE, DELETE, DDL) that modify the database state.
§Arguments
engine- The database engine to execute the command onstatements- The RQL command statementsidentity- The identity context for permission checkingparams- Command parameterstimeout- Maximum time to wait for command completion
§Returns
Ok(Vec<Frame>)- Command results on successErr(ExecuteError::Timeout)- If the command exceeds the timeoutErr(ExecuteError::TaskPanic)- If the blocking task panicsErr(ExecuteError::Engine)- If the engine returns an error