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
Available on crate feature with-deprecated and non-crate feature without-deprecated and crate feature postgres_backend only.
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));