Skip to main content

ProcedureEngine

Trait ProcedureEngine 

Source
pub trait ProcedureEngine: QueryEngine {
    // Provided methods
    fn call(&self, name: impl Into<String>) -> ProcedureCall { ... }
    fn function(&self, name: impl Into<String>) -> ProcedureCall { ... }
    fn execute_procedure(
        &self,
        call: ProcedureCall,
    ) -> BoxFuture<'_, QueryResult<ProcedureResult>>
       where Self: Clone + 'static { ... }
}
Expand description

Extension trait for query engines to support procedure calls.

Provided Methods§

Source

fn call(&self, name: impl Into<String>) -> ProcedureCall

Call a stored procedure.

Source

fn function(&self, name: impl Into<String>) -> ProcedureCall

Call a function.

Source

fn execute_procedure( &self, call: ProcedureCall, ) -> BoxFuture<'_, QueryResult<ProcedureResult>>
where Self: Clone + 'static,

Execute a procedure call.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: QueryEngine + Clone + 'static> ProcedureEngine for T