diesel::expression::array_comparison

Trait InExpression

Source
pub trait InExpression {
    type SqlType: SqlType;

    // Required methods
    fn is_empty(&self) -> bool;
    fn is_array(&self) -> bool;
}
Available on crate feature i-implement-a-third-party-backend-and-opt-into-breaking-changes only.
Expand description

A marker trait that identifies query fragments that can be used in IN(...) and NOT IN(...) clauses, (or = ANY (...) clauses on the Postgres backend)

These can be wrapped in In or NotIn query dsl nodes

Required Associated Types§

Source

type SqlType: SqlType

The SQL type of the inner values, which should be the same as the left of the IN or NOT IN clause

Required Methods§

Source

fn is_empty(&self) -> bool

Returns true if self represents an empty collection Otherwise false is returned.

Source

fn is_array(&self) -> bool

Returns true if the values clause represents bind values and each bind value is a postgres array type

Implementors§

Source§

impl<ST, I> InExpression for Many<ST, I>
where ST: SqlType,

Source§

type SqlType = ST