Function diesel::pg::expression::dsl::all

source ·
pub fn all<ST, T>(vals: T) -> All<T::Expression>where
    T: AsArrayExpression<ST>,
👎Deprecated since 2.0.0: Use ExpressionMethods::ne_all instead
Expand description

Creates a PostgreSQL ALL expression.

As with most bare functions, this is not exported by default. You can import it specifically as diesel::pg::expression::dsl::all, or diesel::dsl::all.

Example

let tess = (2, "Tess".to_string());
let data = users.filter(name.ne(all(vec!["Sean", "Jim"])));
assert_eq!(Ok(vec![tess]), data.load(connection));