SelectStatement in oxide_sql_core::ast - Rust

Struct SelectStatement 

Source

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.

Whether to select DISTINCT values.

§columns: Vec<SelectColumn>

The columns to select.

The FROM clause.

The WHERE clause.

GROUP BY expressions.

HAVING clause.

ORDER BY clauses.

LIMIT clause.

OFFSET clause.

Source§
Source§
Source§
Source§
Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§

§
§
§
§
§
§