pub struct SelectSt<S, Q>where
Q: Query<S>,{ /* private fields */ }Implementations§
Source§impl<S, Q> SelectSt<S, Q>where
Q: Query<S>,
impl<S, Q> SelectSt<S, Q>where
Q: Query<S>,
pub fn build(self) -> (String, <Q as Query<S>>::Output)
pub fn select(&mut self, item: impl SelectItem<S> + 'static)
pub fn join(&mut self, join: impl JoinType<S> + 'static)
pub fn offset<T>(&mut self, shift: T)where
Q: Accept<T, S>,
AcceptToSqlPart<T>: ToSqlPart<Q, S>,
pub fn limit<T>(&mut self, limit: T)where
Q: Accept<T, S>,
AcceptToSqlPart<T>: ToSqlPart<Q, S>,
pub fn order_by(&mut self, by: &'static str, asc: bool)
pub fn where_<T>(&mut self, item: T)where
T: WhereItem<S, Q> + 'static,
WhereItemToSqlPart<T>: ToSqlPart<Q, S>,
Trait Implementations§
impl<S, Q> ExecuteNoCacheUsingSelectTrait for SelectSt<S, Q>where
Q: Query<S>,
Source§impl<S, Q> InitStatement<Q> for SelectSt<S, Q>where
Q: Query<S>,
impl<S, Q> InitStatement<Q> for SelectSt<S, Q>where
Q: Query<S>,
Auto Trait Implementations§
impl<S, Q> Freeze for SelectSt<S, Q>
impl<S, Q> RefUnwindSafe for SelectSt<S, Q>where
<Q as Query<S>>::Context1: RefUnwindSafe,
<Q as Query<S>>::SqlPart: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, Q> Send for SelectSt<S, Q>
impl<S, Q> Sync for SelectSt<S, Q>
impl<S, Q> Unpin for SelectSt<S, Q>
impl<S, Q> UnsafeUnpin for SelectSt<S, Q>
impl<S, Q> UnwindSafe for SelectSt<S, Q>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<'q, S, Q, T> ExecuteNoCache<'q, S, Q> for Twhere
S: Database,
T: Statement<S, Q> + ExecuteNoCacheUsingSelectTrait,
Q: Query<S, Output = <S as HasArguments<'q>>::Arguments>,
impl<'q, S, Q, T> ExecuteNoCache<'q, S, Q> for Twhere
S: Database,
T: Statement<S, Q> + ExecuteNoCacheUsingSelectTrait,
Q: Query<S, Output = <S as HasArguments<'q>>::Arguments>,
fn build(self) -> (String, <S as HasArguments<'q>>::Arguments)
fn execute<E>(
self,
executor: E,
) -> impl Future<Output = Result<<S as Database>::QueryResult, Error>> + Sendwhere
E: for<'e> Executor<'e, Database = S>,
fn fetch_one<E, O, F>( self, executor: E, with: F, ) -> impl Future<Output = Result<O, Error>> + Send
fn fetch_optional<E, O, F>( self, executor: E, with: F, ) -> impl Future<Output = Result<Option<O>, Error>> + Send
fn fetch_all<E, O, F>( self, executor: E, with: F, ) -> impl Future<Output = Result<Vec<O>, Error>> + Send
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<'q, T> InitQuickQuery<'q> for Twhere
T: InitStatement<QuickQuery<'q>>,
impl<'q, T> InitQuickQuery<'q> for Twhere
T: InitStatement<QuickQuery<'q>>,
type Init2 = <T as InitStatement<QuickQuery<'q>>>::Init
fn quick_query(init: <T as InitQuickQuery<'q>>::Init2) -> T
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