Struct mentat_query_algebrizer::FindQuery
[−]
[src]
pub struct FindQuery { pub find_spec: FindSpec, pub default_source: SrcVar, pub with: BTreeSet<Variable>, pub in_vars: BTreeSet<Variable>, pub in_sources: BTreeSet<SrcVar>, pub limit: Limit, pub where_clauses: Vec<WhereClause>, pub order: Option<Vec<Order>>, }
A FindQuery
represents a valid query to the query algebrizer.
We split FindQuery
from ParsedQuery
because it's not easy to generalize over containers
(here, Vec
and BTreeSet
) in Rust.
Fields
find_spec: FindSpec
default_source: SrcVar
with: BTreeSet<Variable>
in_vars: BTreeSet<Variable>
in_sources: BTreeSet<SrcVar>
limit: Limit
where_clauses: Vec<WhereClause>
order: Option<Vec<Order>>
Methods
impl FindQuery
[src]
impl FindQuery
pub fn simple(spec: FindSpec, where_clauses: Vec<WhereClause>) -> FindQuery
[src]
pub fn simple(spec: FindSpec, where_clauses: Vec<WhereClause>) -> FindQuery
pub fn from_parsed_query(parsed: ParsedQuery) -> Result<FindQuery>
[src]
pub fn from_parsed_query(parsed: ParsedQuery) -> Result<FindQuery>
Trait Implementations
impl Debug for FindQuery
[src]
impl Debug for FindQuery
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for FindQuery
[src]
impl Eq for FindQuery
impl PartialEq for FindQuery
[src]
impl PartialEq for FindQuery