Type Alias backend::schema::relations::BoxedQuery

source ·
pub type BoxedQuery<'a, DB, ST = SqlType> = BoxedSelectStatement<'a, ST, FromClause<table>, DB>;
Expand description

Helper type for representing a boxed query from this table

Aliased Type§

struct BoxedQuery<'a, DB, ST = SqlType> {
    pub select: Box<dyn QueryFragment<DB, NotSpecialized> + Send + 'a, Global>,
    pub from: FromClause<table>,
    pub distinct: Box<dyn QueryFragment<DB, NotSpecialized> + Send + 'a, Global>,
    pub where_clause: BoxedWhereClause<'a, DB>,
    pub order: Option<Box<dyn QueryFragment<DB, NotSpecialized> + Send + 'a, Global>>,
    pub limit_offset: BoxedLimitOffsetClause<'a, DB>,
    pub group_by: Box<dyn QueryFragment<DB, NotSpecialized> + Send + 'a, Global>,
    pub having: Box<dyn QueryFragment<DB, NotSpecialized> + Send + 'a, Global>,
    _marker: PhantomData<(ST, ())>,
}

Fields§

§select: Box<dyn QueryFragment<DB, NotSpecialized> + Send + 'a, Global>

The select clause of the query

§from: FromClause<table>

The from clause of the query

§distinct: Box<dyn QueryFragment<DB, NotSpecialized> + Send + 'a, Global>

The distinct clause of the query

§where_clause: BoxedWhereClause<'a, DB>

The where clause of the query

§order: Option<Box<dyn QueryFragment<DB, NotSpecialized> + Send + 'a, Global>>

The order clause of the query

§limit_offset: BoxedLimitOffsetClause<'a, DB>

The combined limit/offset clause of the query

§group_by: Box<dyn QueryFragment<DB, NotSpecialized> + Send + 'a, Global>

The group by clause of the query

§having: Box<dyn QueryFragment<DB, NotSpecialized> + Send + 'a, Global>

The having clause of the query

§_marker: PhantomData<(ST, ())>