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
The SQL type of the inner values, which should be the same as the left of the IN
or
NOT IN
clause
Returns true
if self represents an empty collection
Otherwise false
is returned.
Returns true
if the values clause represents
bind values and each bind value is a postgres array type