Skip to content

Commit

Permalink
♻️ refactor(QueryFragment.java): Add GROUP BY clause support and li…
Browse files Browse the repository at this point in the history
…mit method improvements.
  • Loading branch information
vnobo committed Dec 22, 2024
1 parent b5e249b commit f939263
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ public QueryFragment orderBy(CharSequence order) {
return this;
}

/**
* Adds a GROUP BY clause to the query.
*
* @param size page size
* @param offset page offset
* @return the QueryFragment instance
*/
public QueryFragment limit(int size, long offset) {
this.size = size;
this.offset = offset;
Expand Down

0 comments on commit f939263

Please sign in to comment.