parse_where_clause

Function parse_where_clause 

Source
pub fn parse_where_clause(input: &str) -> IResult<&str, Vec<WhereClause>>
Expand description

Parses a where clause with the following format:

where <identifier> <operator> <varialbe>

  • eg: where id = ?
  • eg: where id = :id and name = ?
  • eg: where id in :ids
  • eg: where id in ? and name = :name
  • eg: where id > :id