Skip to content

Commit

Permalink
✨ feat(QueryFragment.java): Add method to support adding an ORDER B…
Browse files Browse the repository at this point in the history
…Y clause.
  • Loading branch information
vnobo committed Dec 16, 2024
1 parent a8494d0 commit 22e81dd
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ public QueryFragment addWhere(CharSequence where) {
return this;
}

/**
* Adds an ORDER BY clause to the query.
*
* @param order the order
* @return this
*/
public QueryFragment addOrder(CharSequence order) {
orderSql.add(order);
return this;
Expand Down

0 comments on commit 22e81dd

Please sign in to comment.