pub struct QueryBuilder<E>where
E: EntityTrait,{ /* private fields */ }Expand description
Implementations§
Source§impl<E> QueryBuilder<E>
impl<E> QueryBuilder<E>
Sourcepub fn filter<F>(self, filter: F) -> Selfwhere
F: IntoCondition,
pub fn filter<F>(self, filter: F) -> Selfwhere
F: IntoCondition,
Sourcepub fn order_by_asc<C>(self, col: C) -> Selfwhere
C: ColumnTrait,
pub fn order_by_asc<C>(self, col: C) -> Selfwhere
C: ColumnTrait,
Sourcepub fn order_by_desc<C>(self, col: C) -> Selfwhere
C: ColumnTrait,
pub fn order_by_desc<C>(self, col: C) -> Selfwhere
C: ColumnTrait,
Sourcepub fn order_by<C>(self, col: C, order: Order) -> Selfwhere
C: ColumnTrait,
pub fn order_by<C>(self, col: C, order: Order) -> Selfwhere
C: ColumnTrait,
Sourcepub async fn first_or_fail(self) -> Result<E::Model, FrameworkError>
pub async fn first_or_fail(self) -> Result<E::Model, FrameworkError>
Sourcepub async fn count(self) -> Result<u64, FrameworkError>
pub async fn count(self) -> Result<u64, FrameworkError>
Sourcepub async fn exists(self) -> Result<bool, FrameworkError>
pub async fn exists(self) -> Result<bool, FrameworkError>
Sourcepub fn into_select(self) -> Select<E>
pub fn into_select(self) -> Select<E>
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for QueryBuilder<E>
impl<E> !RefUnwindSafe for QueryBuilder<E>
impl<E> Send for QueryBuilder<E>
impl<E> Sync for QueryBuilder<E>
impl<E> Unpin for QueryBuilder<E>where
E: Unpin,
impl<E> !UnwindSafe for QueryBuilder<E>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more