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

Implement EXISTS #150

Open
myguidingstar opened this issue Mar 22, 2019 · 1 comment · Fixed by #151
Open

Implement EXISTS #150

myguidingstar opened this issue Mar 22, 2019 · 1 comment · Fixed by #151

Comments

@myguidingstar
Copy link
Contributor

myguidingstar commented Mar 22, 2019

[:exists {:some-query-root-or-join [:table/column]}] should expand to EXISTS (SELECT a_column FROM some_table)
the problem is the s-expression compiler need emitter from floor-plan to compile so it should be injected to the compiler's env somehow.

@myguidingstar
Copy link
Contributor Author

the problem is EXISTS doesn't live in the same level as COUNT(*) > 0, so the sql query must be built specifically for it

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 a pull request may close this issue.

1 participant