Skip to main content

add_where

Function add_where 

Source
pub fn add_where(
    expr: Expression,
    condition: Expression,
    use_or: bool,
) -> Expression
Expand description

Add a condition to the WHERE clause.

If the SELECT already has a WHERE clause, the new condition is combined with the existing one using AND (default) or OR (when use_or is true). If there is no WHERE clause, one is created.