Struct sql_parser::ast::Query [−][src]
pub struct Query<T: AstInfo> {
pub ctes: Vec<Cte<T>>,
pub body: SetExpr<T>,
pub order_by: Vec<OrderByExpr<T>>,
pub limit: Option<Limit<T>>,
pub offset: Option<Expr<T>>,
}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<T>>WITH (common table expressions, or CTEs)
body: SetExpr<T>SELECT or UNION / EXCEPT / INTECEPT
order_by: Vec<OrderByExpr<T>>ORDER BY
limit: Option<Limit<T>>LIMIT { <N> | ALL }
FETCH { FIRST | NEXT } <N> { ROW | ROWS } | { ONLY | WITH TIES }
offset: Option<Expr<T>>OFFSET <N> { ROW | ROWS }
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Query<T> where
<T as AstInfo>::Id: RefUnwindSafe,
<T as AstInfo>::ObjectName: RefUnwindSafe,
impl<T> UnwindSafe for Query<T> where
<T as AstInfo>::Id: UnwindSafe,
<T as AstInfo>::ObjectName: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Formats an object with the “alternative” format ({:#}) and returns it.
Compare self to key and return true if they are equal.
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more