SubQuery4<A, B, C, D> extension

Extension methods for a subquery returning zero or more rows with 4 expressions.

on

Methods

count() Expr<int>

Available on SubQuery<(Expr<A>, Expr<B>, Expr<C>, Expr<D>)>, provided by the SubQuery4 extension

Count number of rows in this SubQuery using COUNT(*) aggregate function.
exists() Expr<bool>

Available on SubQuery<(Expr<A>, Expr<B>, Expr<C>, Expr<D>)>, provided by the SubQuery4 extension

Check for existance of rows in this SubQuery using EXISTS operator.
limit(int limit) SubQuery<(Expr<A>, Expr<B>, Expr<C>, Expr<D>)>

Available on SubQuery<(Expr<A>, Expr<B>, Expr<C>, Expr<D>)>, provided by the SubQuery4 extension

Limit SubQuery using LIMIT clause.
offset(int offset) SubQuery<(Expr<A>, Expr<B>, Expr<C>, Expr<D>)>

Available on SubQuery<(Expr<A>, Expr<B>, Expr<C>, Expr<D>)>, provided by the SubQuery4 extension

Offset SubQuery using OFFSET clause.
orderBy(List<(Expr<Comparable?>, Order)> builder(Expr<A> a, Expr<B> b, Expr<C> c, Expr<D> d)) OrderedSubQuery<(Expr<A>, Expr<B>, Expr<C>, Expr<D>)>

Available on SubQuery<(Expr<A>, Expr<B>, Expr<C>, Expr<D>)>, provided by the SubQuery4 extension

Order SubQuery using ORDER BY clause.
select<T extends Record>(T projectionBuilder(Expr<A> a, Expr<B> b, Expr<C> c, Expr<D> d)) SubQuery<T>

Available on SubQuery<(Expr<A>, Expr<B>, Expr<C>, Expr<D>)>, provided by the SubQuery4 extension

Create a projection of this SubQuery using SELECT clause.
where(Expr<bool> conditionBuilder(Expr<A> a, Expr<B> b, Expr<C> c, Expr<D> d)) SubQuery<(Expr<A>, Expr<B>, Expr<C>, Expr<D>)>

Available on SubQuery<(Expr<A>, Expr<B>, Expr<C>, Expr<D>)>, provided by the SubQuery4 extension

Filter SubQuery using WHERE clause.