Function diesel::pg::expression::dsl::all
postgres
[] [src]

pub fn all<ST, T>(vals: T) -> All<T::Expression, ST> where
    Pg: HasSqlType<ST>,
    T: AsExpression<Array<ST>>, 

Creates a PostgreSQL ALL expression.

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

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));