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

Add support for parenthesized expressions & EXISTS subquery #126

Merged
merged 3 commits into from
Mar 29, 2023

Conversation

DerekStride
Copy link
Owner

@DerekStride DerekStride commented Mar 22, 2023

What

There's three changes being made in this PR, each are contained to individual commits.

  1. Support for parenthesized expression. e.g. wrapping expressions in ( & ) to group them.
  2. Support for the EXISTS expression.
    • Includes subquery support for IN
    • Excludes NOT IN, there was conflicts with precedence that I want to sort out separately.
  3. Support for ANY, SOME, & ALL

@DerekStride DerekStride self-assigned this Mar 22, 2023
@DerekStride DerekStride marked this pull request as ready for review March 22, 2023 20:29
@DerekStride
Copy link
Owner Author

FYI I've enabled branch protection to require at least 1 approval & all the test suites passing before merging a PR

Copy link
Collaborator

@matthias-Q matthias-Q left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parenthesis change LGTM
exists is good, but adding more options (like not in etc) would be great

grammar.js Show resolved Hide resolved
@DerekStride
Copy link
Owner Author

I've update the PR (& the PR description) to include the suggested changes.

The one exception was NOT IN ended up causing precedence issues. I can open a separate issue to explore that in the future.

@matthias-Q
Copy link
Collaborator

LGTM

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