pub async fn execute_command(
system: ActorSystem,
engine: StandardEngine,
statements: Vec<String>,
identity: IdentityId,
params: Params,
timeout: Duration,
) -> ExecuteResult<Vec<Frame>>Expand description
Execute a command with timeout.
Commands are write operations (INSERT, UPDATE, DELETE) that modify the database state. DDL operations are not allowed in command transactions.
§Arguments
system- The actor system to execute the command onengine- 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::Cancelled)- If the command was cancelledErr(ExecuteError::Engine)- If the engine returns an error