pub struct SelectStatement {Show 14 fields
pub token: Token,
pub distinct: bool,
pub distinct_on: Vec<Expression>,
pub columns: Vec<Expression>,
pub with: Option<WithClause>,
pub table_expr: Option<Box<Expression>>,
pub where_clause: Option<Box<Expression>>,
pub group_by: GroupByClause,
pub having: Option<Box<Expression>>,
pub window_defs: Vec<WindowDefinition>,
pub order_by: Vec<OrderByExpression>,
pub limit: Option<Box<Expression>>,
pub offset: Option<Box<Expression>>,
pub set_operations: Vec<SetOperation>,
}Expand description
SELECT statement
Fields§
§token: Token§distinct: bool§distinct_on: Vec<Expression>DISTINCT ON (expr1, expr2, …) expressions. Empty for regular DISTINCT or no DISTINCT.
columns: Vec<Expression>§with: Option<WithClause>§table_expr: Option<Box<Expression>>§where_clause: Option<Box<Expression>>§group_by: GroupByClause§having: Option<Box<Expression>>§window_defs: Vec<WindowDefinition>Named window definitions (WINDOW w AS (…))
order_by: Vec<OrderByExpression>§limit: Option<Box<Expression>>§offset: Option<Box<Expression>>§set_operations: Vec<SetOperation>Set operations (UNION, INTERSECT, EXCEPT)
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 (const: unstable) · 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 UnsafeUnpin 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