having method

Sqler having(
  1. Having having
)

Adds a HAVING condition to the query.

having The HAVING condition to add. Returns this to enable method chaining.

HAVING is used with GROUP BY to filter grouped results.

Example:

query.having(Having([Condition(QField('COUNT(*)'), QO.GT, QVar(5))])); // HAVING COUNT(*) > 5

Implementation

Sqler having(Having having) {
  _having.add(having);
  return this;
}