PostgresArrayPredicates<T, V> extension

Native PostgreSQL array predicates with typed, bound array values.

on

Methods

arrayContains(Iterable<V> values) → SqlPredicate<T>

Available on ModelColumn<T, List<V>>, provided by the PostgresArrayPredicates extension

Tests whether the array contains every supplied value, using @>. Throws TikalUnsupportedException outside PostgreSQL or for other element types.
arrayOverlaps(Iterable<V> values) → SqlPredicate<T>

Available on ModelColumn<T, List<V>>, provided by the PostgresArrayPredicates extension

Tests whether arrays share any supplied element, using &&. Throws TikalUnsupportedException outside PostgreSQL or for other element types.