[][src]Struct sql_ast::ast::Query

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>,
}

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

impl Clone for Query[src]

impl Debug for Query[src]

impl Display for Query[src]

impl Eq for Query[src]

impl Hash for Query[src]

impl PartialEq<Query> for Query[src]

impl StructuralEq for Query[src]

impl StructuralPartialEq for Query[src]

Auto Trait Implementations

impl RefUnwindSafe for Query

impl Send for Query

impl Sync for Query

impl Unpin for Query

impl UnwindSafe for Query

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.