Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CTEs for the rest of CRUD statements #1338

Merged
merged 5 commits into from
Jul 24, 2024
Merged

CTEs for the rest of CRUD statements #1338

merged 5 commits into from
Jul 24, 2024

Conversation

trueqbit
Copy link
Collaborator

@trueqbit trueqbit commented Jul 21, 2024

This PR adds the ability to use common table expressions for the rest of CRUD statements, in addition to "raw" insert statements: "raw" replace, update all, remove all.

In addition, this PR contains:

  • More expression factory functions are now marked constexpr: operators, asterisk, object, where, select, compound, cte.

Also: When collecting table names from column assignments that are part of an “update all” expression, we are only interested in the table name on the left-hand side of the assignment operator expression.
... operators, asterisk, object, where, select, compound, cte.
This makes it possible to factor out common expressions now.
@trueqbit trueqbit changed the title CTEs for the rest of CRUD operations CTEs for the rest of CRUD statements Jul 21, 2024
@trueqbit trueqbit requested a review from fnc12 July 22, 2024 07:30
dev/ast/where.h Show resolved Hide resolved
@trueqbit trueqbit merged commit 662f4e0 into dev Jul 24, 2024
3 checks passed
@trueqbit trueqbit deleted the amend-cte branch July 24, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants