pub struct Query {
pub select: Select,
pub from: String,
pub where_clause: Option<Term>,
pub group_by: Option<Vec<String>>,
pub having: Option<Having>,
pub order_by: Option<OrderBy>,
pub limit: Option<u64>,
pub offset: Option<u64>,
}Expand description
The Query struct is the top-level object that represents a query. The user is expected to construct the Query object and then call the sql() method to get the SQL string.
Fields§
§select: SelectThe select clause.
from: StringThe table name for the select clause.
where_clause: Option<Term>The conditions for the where clause, if it exists.
group_by: Option<Vec<String>>§having: Option<Having>§order_by: Option<OrderBy>§limit: Option<u64>§offset: Option<u64>Trait Implementations§
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§
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