pub struct SelectStmt {
pub projection: Vec<SelectItem>,
pub from: Vec<TableExpr>,
pub filter: Option<Expr>,
pub distinct: bool,
pub group_by: Vec<Expr>,
pub having: Option<Expr>,
pub order_by: Vec<OrderItem>,
pub limit: Option<i64>,
pub offset: Option<i64>,
pub locking: Option<RowLockStrength>,
}Fields§
§projection: Vec<SelectItem>§from: Vec<TableExpr>SP33: the FROM clause — a list of join trees. Empty for a FROM-less SELECT;
the comma form (FROM a, b) is a Vec<TableExpr> with len > 1 (implicit
cross join).
filter: Option<Expr>§distinct: boolSP28: SELECT DISTINCT — dedup the projected output rows.
group_by: Vec<Expr>SP27: GROUP BY <expr-list> (empty when absent).
having: Option<Expr>SP27: HAVING <predicate> (evaluated per group).
order_by: Vec<OrderItem>§limit: Option<i64>§offset: Option<i64>SP28: OFFSET <n> — skip the first n output rows (before LIMIT).
locking: Option<RowLockStrength>Trait Implementations§
Source§impl Clone for SelectStmt
impl Clone for SelectStmt
Source§fn clone(&self) -> SelectStmt
fn clone(&self) -> SelectStmt
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 SelectStmt
impl Debug for SelectStmt
Source§impl PartialEq for SelectStmt
impl PartialEq for SelectStmt
impl StructuralPartialEq for SelectStmt
Auto Trait Implementations§
impl Freeze for SelectStmt
impl RefUnwindSafe for SelectStmt
impl Send for SelectStmt
impl Sync for SelectStmt
impl Unpin for SelectStmt
impl UnsafeUnpin for SelectStmt
impl UnwindSafe for SelectStmt
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