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