The append method will modify the original sql in place.
However, it's common that we need to define a common base sql (as const), and append different WHERE or ORDER BY conditons to it (to get a new SQL instance) for different situations, this is not available at the momment.
A suggested solution could be:
In additional to the append method, we can also define a + operator, to return a new sql, without changing original one.
The
append
method will modify the original sql in place. However, it's common that we need to define a common base sql (as const), and append differentWHERE
orORDER BY
conditons to it (to get a new SQL instance) for different situations, this is not available at the momment.A suggested solution could be: In additional to the append method, we can also define a
+
operator, to return a new sql, without changing original one.