pub struct SelectStatement {
pub distinct: bool,
pub columns: Vec<SelectColumn>,
pub from: Option<TableRef>,
pub where_clause: Option<Expr>,
pub group_by: Vec<Expr>,
pub having: Option<Expr>,
pub order_by: Vec<OrderBy>,
pub limit: Option<Expr>,
pub offset: Option<Expr>,
}Expand description
A SELECT statement.
Fields§
§distinct: boolWhether to select DISTINCT values.
columns: Vec<SelectColumn>The columns to select.
from: Option<TableRef>The FROM clause.
where_clause: Option<Expr>The WHERE clause.
group_by: Vec<Expr>GROUP BY expressions.
having: Option<Expr>HAVING clause.
order_by: Vec<OrderBy>ORDER BY clauses.
limit: Option<Expr>LIMIT clause.
offset: Option<Expr>OFFSET clause.
Trait Implementations§
Source§impl Clone for SelectStatement
impl Clone for SelectStatement
Source§fn clone(&self) -> SelectStatement
fn clone(&self) -> SelectStatement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelectStatement
impl Debug for SelectStatement
Source§impl Display for SelectStatement
impl Display for SelectStatement
Source§impl PartialEq for SelectStatement
impl PartialEq for SelectStatement
impl StructuralPartialEq for SelectStatement
Auto Trait Implementations§
impl Freeze for SelectStatement
impl RefUnwindSafe for SelectStatement
impl Send for SelectStatement
impl Sync for SelectStatement
impl Unpin for SelectStatement
impl UnwindSafe for SelectStatement
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