pub struct Select {
pub ctes: Vec<Cte>,
pub compound: Vec<(CompoundOp, Select)>,
pub distinct: bool,
pub columns: Vec<ResultColumn>,
pub from: Option<FromClause>,
pub where_clause: Option<Expr>,
pub group_by: Vec<Expr>,
pub having: Option<Expr>,
pub order_by: Vec<OrderTerm>,
pub limit: Option<Expr>,
pub offset: Option<Expr>,
}Expand description
A SELECT query.
Fields§
§ctes: Vec<Cte>WITH common table expressions, in declaration order.
compound: Vec<(CompoundOp, Select)>Compound continuations (UNION/INTERSECT/EXCEPT …), left-associative.
The outer order_by/limit/offset apply to the whole compound.
distinct: boolSELECT DISTINCT?
columns: Vec<ResultColumn>The projected result columns.
from: Option<FromClause>The FROM clause, if any.
where_clause: Option<Expr>The WHERE predicate, if any.
group_by: Vec<Expr>GROUP BY expressions.
having: Option<Expr>HAVING predicate.
order_by: Vec<OrderTerm>ORDER BY terms.
limit: Option<Expr>LIMIT expression.
offset: Option<Expr>OFFSET expression.
Trait Implementations§
impl StructuralPartialEq for Select
Auto Trait Implementations§
impl Freeze for Select
impl RefUnwindSafe for Select
impl Send for Select
impl Sync for Select
impl Unpin for Select
impl UnsafeUnpin for Select
impl UnwindSafe for Select
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