pub struct ViewFindManyOperation<E: QueryEngine, V: View> { /* private fields */ }Expand description
Implementations§
Source§impl<E: QueryEngine, V: View> ViewFindManyOperation<E, V>
impl<E: QueryEngine, V: View> ViewFindManyOperation<E, V>
Sourcepub fn distinct(
self,
columns: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn distinct( self, columns: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Make the query distinct.
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<Vec<V>>where
V: Send + 'static + DeserializeOwned,
pub async fn exec(self) -> QueryResult<Vec<V>>where
V: Send + 'static + DeserializeOwned,
Execute the query.
Note: This requires the query engine to support view queries. For now, we use raw query execution.
Auto Trait Implementations§
impl<E, V> Freeze for ViewFindManyOperation<E, V>where
E: Freeze,
impl<E, V> RefUnwindSafe for ViewFindManyOperation<E, V>where
E: RefUnwindSafe,
V: RefUnwindSafe,
impl<E, V> Send for ViewFindManyOperation<E, V>
impl<E, V> Sync for ViewFindManyOperation<E, V>
impl<E, V> Unpin for ViewFindManyOperation<E, V>
impl<E, V> UnwindSafe for ViewFindManyOperation<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