-
-
Notifications
You must be signed in to change notification settings - Fork 252
Unify SelectStatement and WithQuery #813
Copy link
Copy link
Closed
Description
Motivation
WithQuery is currently a separate entity from SelectStatement which is unfortunate, because it restricts where you can use it, i.e. I'd like to use a WithQuery as a FROM with from_subquery in another query but I don't believe I can, because only SelectStatements are accepted.
Line 1024 in 53fd4e9
| pub fn from_subquery<T>(&mut self, query: SelectStatement, alias: T) -> &mut Self |
Proposed Solutions
Move with_clause into SelectStatement/UpdateStatement/DeleteStatement/InsertStatement instead of having a separate code path for it.
Additional Information
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels