pub fn array_overlaps<'a, L, R>(
left: L,
right: R,
) -> SQLExpr<'a, PostgresValue<'a>, Boolean, NonNull, Scalar>Expand description
PostgreSQL && operator - arrays overlap.
Returns true if the arrays have any elements in common.
ยงExample
let tags = SQL::<PostgresValue>::raw("tags");
let condition = array_overlaps(tags, "rust");
assert!(condition.to_sql().sql().contains("&&"));
// Generates: tags && $1