Struct sql_ast::ast::Query [−][src]
pub struct Query { pub ctes: Vec<Cte>, pub body: SetExpr, pub order_by: Vec<OrderByExpr>, pub limit: Option<Expr>, pub offset: Option<Expr>, pub fetch: Option<Fetch>, }
Expand description
The most complete variant of a SELECT
query expression, optionally
including WITH
, UNION
/ other set operations, and ORDER BY
.
Fields
ctes: Vec<Cte>
WITH (common table expressions, or CTEs)
body: SetExpr
SELECT or UNION / EXCEPT / INTECEPT
order_by: Vec<OrderByExpr>
ORDER BY
limit: Option<Expr>
LIMIT { <N> | ALL }
offset: Option<Expr>
OFFSET <N> { ROW | ROWS }
fetch: Option<Fetch>
FETCH { FIRST | NEXT } <N> [ PERCENT ] { ROW | ROWS } | { ONLY | WITH TIES }
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Query
impl UnwindSafe for Query
Blanket Implementations
Mutably borrows from an owned value. Read more