sea-query
sea-query copied to clipboard
Remove separate WithQuery to ensure it can be specified everywhere
Instead, move the with clause into insert/update/select/delete. This makes sure you can specify with WITH clause to any method that takes a SelectStatement/UpdateStatement/InsertStatement/DeleteStatement.
PR Info
- Closes #813
Breaking Changes
- [x] This removes
WithQueryand changes the signature of.with()
Thank you for your contribution. While I appreciate now that we can use a with clause in all statement types, removing WithQuery is breaking. Is there a middleground where we still keep it?
We could keep both kinds and deprecate WithQuery, removing it in a later version.
@tyt2y3 @bouk see #859 which implements the suggested approach
Closed in favour of https://github.com/SeaQL/sea-query/pull/859