pub struct RawQueryOperation<M, E>{ /* private fields */ }Expand description
Raw query operation for executing typed queries.
Implementations§
Source§impl<M, E> RawQueryOperation<M, E>
impl<M, E> RawQueryOperation<M, E>
Sourcepub async fn exec(self) -> QueryResult<Vec<M>>
pub async fn exec(self) -> QueryResult<Vec<M>>
Execute the query and return all matching records.
Sourcepub async fn exec_one(self) -> QueryResult<M>
pub async fn exec_one(self) -> QueryResult<M>
Execute the query and return a single record.
Sourcepub async fn exec_optional(self) -> QueryResult<Option<M>>
pub async fn exec_optional(self) -> QueryResult<Option<M>>
Execute the query and return an optional record.
Trait Implementations§
Auto Trait Implementations§
impl<M, E> Freeze for RawQueryOperation<M, E>where
E: Freeze,
impl<M, E> RefUnwindSafe for RawQueryOperation<M, E>where
E: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, E> Send for RawQueryOperation<M, E>
impl<M, E> Sync for RawQueryOperation<M, E>
impl<M, E> Unpin for RawQueryOperation<M, E>
impl<M, E> UnwindSafe for RawQueryOperation<M, E>where
E: UnwindSafe,
M: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more