Skip to main content

parse_query

Function parse_query 

Source
pub fn parse_query(text: &str) -> Result<QuerySpec, HaysonQueryParseError>
Expand description

Parses the WHERE-clause fragment of the SQL-like query language from ADR-0009 (cerebro ADR-6dk7): a predicate expression combining comparisons with AND/OR and parentheses. SELECT/FROM/JOIN/MATCH/ORDER BY/LIMIT/OFFSET and bound parameters are a separate, larger piece and are not covered here — see the query module’s TODO.