pub struct SelectQuery {
pub table_name: String,
pub table_alias: Option<String>,
pub joins: Vec<JoinClause>,
pub projection: Projection,
pub selection: Option<Expr>,
pub order_by: Option<OrderByClause>,
pub limit: Option<usize>,
pub distinct: bool,
pub group_by: Vec<String>,
}Expand description
A parsed, simplified SELECT query.
Fields§
§table_name: String§table_alias: Option<String>Optional AS alias on the leading FROM table. The executor’s
scope resolver treats alias.unwrap_or(table_name) as the
qualifier name.
joins: Vec<JoinClause>SQLR-5 — JOIN clauses in source order. Empty = single-table SELECT, the existing fast path.
projection: Projection§selection: Option<Expr>Raw sqlparser WHERE expression, evaluated by the executor at run time.
order_by: Option<OrderByClause>§limit: Option<usize>§distinct: boolSELECT DISTINCT.
group_by: Vec<String>GROUP BY a, b — bare column names. Empty = no GROUP BY.
Implementations§
Trait Implementations§
Source§impl Clone for SelectQuery
impl Clone for SelectQuery
Source§fn clone(&self) -> SelectQuery
fn clone(&self) -> SelectQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SelectQuery
impl RefUnwindSafe for SelectQuery
impl Send for SelectQuery
impl Sync for SelectQuery
impl Unpin for SelectQuery
impl UnsafeUnpin for SelectQuery
impl UnwindSafe for SelectQuery
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