pub struct Query<T: Source> { /* private fields */ }Implementations§
Source§impl<T: Source> Query<T>
impl<T: Source> Query<T>
pub fn where_(self, condition: Condition<T::Base>) -> Self
pub fn scope(self, scope: impl FnOnce(Self) -> Self) -> Self
pub fn order_by(self, sort: Sort<T::Base>) -> Self
pub fn limit(self, limit: u64) -> Self
pub async fn all(self, read: &Read) -> Result<Vec<T>>
pub async fn first(self, read: &Read) -> Result<Option<T>>
pub async fn count(self, read: &Read) -> Result<u64>
pub async fn exists(self, read: &Read) -> Result<bool>
pub fn stream(self, read: &Read) -> Result<Stream<T>>
Source§impl<T: Source> Query<T>where
T::Base: SoftDeletes,
impl<T: Source> Query<T>where
T::Base: SoftDeletes,
pub fn with_trashed(self) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Forget for Query<T>
impl<T> Freeze for Query<T>
impl<T> RefUnwindSafe for Query<T>
impl<T> Send for Query<T>
impl<T> Sync for Query<T>
impl<T> Unpin for Query<T>
impl<T> UnsafeUnpin for Query<T>
impl<T> UnwindSafe for Query<T>
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