Skip to main content

list_contains

Function list_contains 

Source
pub fn list_contains(list: Expression, value: Expression) -> Expression
Expand description

Creates an expression that checks whether a list contains a value.

A null element never matches anything: a needle that matches no element yields false. For SQL’s three-valued IN, where a null element makes that null, use in_list.

let expr = list_contains(root(), lit(42));