pub struct QueryPlan {
pub table: String,
pub columns: Vec<String>,
pub filter: Option<Filter>,
pub order_by: OrderBy,
pub limits: QueryLimits,
pub count_total: bool,
}Expand description
Query plan representing a query to execute
Fields§
§table: StringTable to query
columns: Vec<String>Columns to select (empty = all)
filter: Option<Filter>Filter conditions
order_by: OrderByOrdering
limits: QueryLimitsLimits
count_total: boolWhether to count total rows
Implementations§
Source§impl QueryPlan
impl QueryPlan
Sourcepub fn with_total_count(self) -> Self
pub fn with_total_count(self) -> Self
Enable total count
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryPlan
impl RefUnwindSafe for QueryPlan
impl Send for QueryPlan
impl Sync for QueryPlan
impl Unpin for QueryPlan
impl UnsafeUnpin for QueryPlan
impl UnwindSafe for QueryPlan
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