pub struct CountOperation<E: QueryEngine, M: Model> { /* private fields */ }Expand description
Implementations§
Source§impl<E: QueryEngine, M: Model> CountOperation<E, M>
impl<E: QueryEngine, M: Model> CountOperation<E, M>
Sourcepub fn build_sql(&self) -> (String, Vec<FilterValue>)
pub fn build_sql(&self) -> (String, Vec<FilterValue>)
Build the SQL query.
Sourcepub async fn exec(self) -> QueryResult<u64>
pub async fn exec(self) -> QueryResult<u64>
Execute the count query.
Auto Trait Implementations§
impl<E, M> Freeze for CountOperation<E, M>where
E: Freeze,
impl<E, M> RefUnwindSafe for CountOperation<E, M>where
E: RefUnwindSafe,
M: RefUnwindSafe,
impl<E, M> Send for CountOperation<E, M>
impl<E, M> Sync for CountOperation<E, M>
impl<E, M> Unpin for CountOperation<E, M>
impl<E, M> UnwindSafe for CountOperation<E, M>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