pub struct QueryPlan {
pub columns: Vec<String>,
pub table: String,
pub filter: Option<String>,
pub group_by: Vec<String>,
pub aggregations: Vec<Aggregation>,
pub order_by: Vec<(String, OrderDirection)>,
pub limit: Option<usize>,
}Expand description
Parsed SQL query with extracted components
Fields§
§columns: Vec<String>Selected columns (or * for all)
table: StringTable name
filter: Option<String>WHERE clause expression (optional)
group_by: Vec<String>GROUP BY columns (optional)
aggregations: Vec<Aggregation>Aggregation functions: (function, column, alias)
order_by: Vec<(String, OrderDirection)>ORDER BY clauses
limit: Option<usize>LIMIT count (optional)
Trait Implementations§
impl Eq for QueryPlan
impl StructuralPartialEq for QueryPlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.