Skip to main content

execute_admin

Function execute_admin 

Source
pub async fn execute_admin(
    system: ActorSystem,
    engine: StandardEngine,
    statements: Vec<String>,
    identity: IdentityId,
    params: Params,
    timeout: Duration,
) -> ExecuteResult<Vec<Frame>>
Expand description

Execute an admin operation with timeout.

Admin operations include DDL (CREATE TABLE, ALTER, etc.), DML (INSERT, UPDATE, DELETE), and read queries. This is the most privileged execution level.

§Arguments

  • system - The actor system to execute the admin operation on
  • engine - The database engine to execute the admin operation on
  • statements - The RQL admin statements
  • identity - The identity context for permission checking
  • params - Admin parameters
  • timeout - Maximum time to wait for admin completion

§Returns

  • Ok(Vec<Frame>) - Admin results on success
  • Err(ExecuteError::Timeout) - If the admin operation exceeds the timeout
  • Err(ExecuteError::Cancelled) - If the admin operation was cancelled
  • Err(ExecuteError::Engine) - If the engine returns an error