Skip to content

Commit

Permalink
✨ feat(QueryFragment.java): Add method to merge order clause.
Browse files Browse the repository at this point in the history
  • Loading branch information
vnobo committed Dec 16, 2024
1 parent 42f5312 commit 4eb5d8c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ public QueryFragment mergeWhere(StringJoiner where) {
return this;
}

/**
* Merges the given order clause with the existing one.
*
* @param order the order
* @return this
*/
public QueryFragment mergeOrder(StringJoiner order) {
orderSql.merge(order);
return this;
Expand Down

0 comments on commit 4eb5d8c

Please sign in to comment.