Skip to main content

parse_predicate

Function parse_predicate 

Source
pub fn parse_predicate(s: &str) -> Option<Expr>
Expand description

Parse a SQL predicate string into an Expr, returning None on failure.

The predicate is wrapped in SELECT 1 WHERE <predicate> so that the full sqlparser WHERE-expression grammar is available.