pub struct FindManyOperation<E: QueryEngine, M: Model> { /* private fields */ }Expand description
Implementations§
Source§impl<E: QueryEngine, M: Model> FindManyOperation<E, M>
impl<E: QueryEngine, M: Model> FindManyOperation<E, M>
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<M>>where
M: Send + 'static,
pub async fn exec(self) -> QueryResult<Vec<M>>where
M: Send + 'static,
Execute the query.
Auto Trait Implementations§
impl<E, M> Freeze for FindManyOperation<E, M>where
E: Freeze,
impl<E, M> RefUnwindSafe for FindManyOperation<E, M>where
E: RefUnwindSafe,
M: RefUnwindSafe,
impl<E, M> Send for FindManyOperation<E, M>
impl<E, M> Sync for FindManyOperation<E, M>
impl<E, M> Unpin for FindManyOperation<E, M>
impl<E, M> UnwindSafe for FindManyOperation<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