pub struct ViewCountOperation<E: QueryEngine, V: View> { /* private fields */ }Expand description
A count operation for views.
Implementations§
Source§impl<E: QueryEngine, V: View> ViewCountOperation<E, V>
impl<E: QueryEngine, V: View> ViewCountOperation<E, V>
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, V> Freeze for ViewCountOperation<E, V>where
E: Freeze,
impl<E, V> RefUnwindSafe for ViewCountOperation<E, V>where
E: RefUnwindSafe,
V: RefUnwindSafe,
impl<E, V> Send for ViewCountOperation<E, V>
impl<E, V> Sync for ViewCountOperation<E, V>
impl<E, V> Unpin for ViewCountOperation<E, V>
impl<E, V> UnwindSafe for ViewCountOperation<E, V>where
E: UnwindSafe,
V: 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