pub struct ProcedureCallOperation<E: QueryEngine> { /* private fields */ }Expand description
Operation for executing a procedure call.
Implementations§
Source§impl<E: QueryEngine> ProcedureCallOperation<E>
impl<E: QueryEngine> ProcedureCallOperation<E>
Sourcepub fn new(engine: E, call: ProcedureCall) -> Self
pub fn new(engine: E, call: ProcedureCall) -> Self
Create a new procedure call operation.
Sourcepub async fn exec(self) -> QueryResult<ProcedureResult>
pub async fn exec(self) -> QueryResult<ProcedureResult>
Execute the procedure and return the result.
Sourcepub async fn exec_returning<T>(self) -> QueryResult<Vec<T>>
pub async fn exec_returning<T>(self) -> QueryResult<Vec<T>>
Execute the procedure and return typed results.
Sourcepub async fn exec_scalar<T>(self) -> QueryResult<T>
pub async fn exec_scalar<T>(self) -> QueryResult<T>
Execute a function and return a single value.
Auto Trait Implementations§
impl<E> Freeze for ProcedureCallOperation<E>where
E: Freeze,
impl<E> RefUnwindSafe for ProcedureCallOperation<E>where
E: RefUnwindSafe,
impl<E> Send for ProcedureCallOperation<E>
impl<E> Sync for ProcedureCallOperation<E>
impl<E> Unpin for ProcedureCallOperation<E>where
E: Unpin,
impl<E> UnwindSafe for ProcedureCallOperation<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more