-
Notifications
You must be signed in to change notification settings - Fork 42
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 ClojureScript query building examples #171
Comments
Hey! Here's how we do it:
Generating the queries happens the same as you would in Clojure, e.g.
When
That's plain old Clojure data you can send via Transit. Then when you get that data on the other end, just call The very obvious problem here is accepting untrusted db queries. I don't have a great fully general solution to this. As I was writing this comment, I remembered https://github.com/zubairq/BlocklyBuilder#is-it-secure-to-have-sql-in-the-ui-code. I haven't vetted it, but that seems like it might be an ok way to do it??? |
Thanks for the detailed answer, I also read about privacy concerns and I guess encripting is fine, even if JavaScript randomness leaves something to be desired ... probably coupled with authorization of the endpoint as well... |
Hello folks!
I need just some minimal example to get going. I am willing to create a wiki page if I get some hint on where to start, I saw
query
andquery-builder
namespaces but I was not able (not tried super hard I have to say) to make them work together fromcljs
files.I understood that I then should send the query to the server and execute from there. Is that right?
The text was updated successfully, but these errors were encountered: