pub struct Select {
pub distinct: bool,
pub projection: Projection,
pub from: TableRef,
pub joins: Vec<JoinClause>,
pub filter: Option<Condition>,
pub group_by: Vec<ColumnRef>,
pub having: Option<Condition>,
pub order_by: Vec<OrderItem>,
pub limit: Option<RowCount>,
pub offset: Option<RowCount>,
}Expand description
A SELECT statement.
Fields§
§distinct: boolWhether DISTINCT follows SELECT.
projection: ProjectionThe select list.
from: TableRefThe FROM table.
joins: Vec<JoinClause>The JOIN clauses, in source order.
filter: Option<Condition>The WHERE condition.
group_by: Vec<ColumnRef>The GROUP BY columns.
having: Option<Condition>The HAVING condition.
order_by: Vec<OrderItem>The ORDER BY items, most significant first.
limit: Option<RowCount>The LIMIT row count.
offset: Option<RowCount>The OFFSET row count.
Trait Implementations§
impl Eq for Select
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