-
-
Notifications
You must be signed in to change notification settings - Fork 174
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 checking for hh/where
when (seq clauses)
is nil
#413
Comments
You can't do the checking in the helpers -- not everyone uses them and there are many ways to build the data structure that is the DSL. The checking needs to be added to the formatters for As usual, with SQL stuff, it's harder than it looks 😄 |
Adding checks to |
We are using I think doing some checking is a good way to avoid messing up during REPL excursions. |
@orestis for such a use case, |
This has been added as a |
Is a potential foot gun when
(seq xs)
isnil
, since it translates toDELETE FROM foo
It would be nice to add detection for this in the
:checking
functionality described in https://cljdoc.org/d/com.github.seancorfield/honeysql/2.2.891/doc/getting-started?q=checking#format-optionsI'd be happy to work on a PR for this
Having looked at the code, I might have been a bit optimistic with regards to my happiness to work on a PR for this.
The checking bit is done in the
format
part of honey, and theformat
bit is somewhat involved it seems.It would be much easier it seems to do this checking in
hh/where
:)The text was updated successfully, but these errors were encountered: