Skip to main content

parse_where_clause

Function parse_where_clause 

Source
pub fn parse_where_clause(value: &str) -> Result<WhereClause, String>
Expand description

Parses a --where string into a WhereClause.

Format: KEY OP VALUE (space-separated, but multi-char operators like ^= and ~= can be glued to the key: path^=prefix). exists takes only one token: KEY exists.

ยงErrors

Returns an error string if the format is invalid or the operator is unknown.