pub struct Ast {
pub schema: Option<String>,
pub table: String,
pub alias: Option<String>,
pub where_: Option<Condition>,
pub related: Option<Vec<CorrelatedSubquery>>,
pub start: Option<Bound>,
pub limit: Option<f64>,
pub order_by: Option<Vec<OrderPart>>,
pub aggregate: Option<Aggregate>,
pub group_by: Option<Vec<String>>,
}Expand description
A query: a table, its filters, relationships, order, and bounds.
Fields§
§schema: Option<String>§table: String§alias: Option<String>Set on subqueries, to tell apart two subqueries of the same table.
where_: Option<Condition>§start: Option<Bound>§limit: Option<f64>§order_by: Option<Vec<OrderPart>>§aggregate: Option<Aggregate>Reduces the query to one aggregate over the rows left after where,
start, and limit; with group_by, to one per group.
group_by: Option<Vec<String>>Groups the rows that pass where by these columns: alone a
SELECT DISTINCT of them, with aggregate that aggregate per group.
Implementations§
Trait Implementations§
Source§impl JsonCodable for Ast
impl JsonCodable for Ast
impl StructuralPartialEq for Ast
Auto Trait Implementations§
impl Forget for Ast
impl Freeze for Ast
impl Move for Ast
impl RefUnwindSafe for Ast
impl Send for Ast
impl Sync for Ast
impl Unpin for Ast
impl UnsafeUnpin for Ast
impl UnwindSafe for Ast
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more