We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently db->tree doesn't handle queries which include ParamExpr.
It would be useful to strip these out in the case where a remote has processed the ParamExpr and the client simply needs to access the data.
Something like the code below might be suitable.
(defn param-expr? "Returns true if x is param expr." [x] (and (list? x) (== 2 (count x)) (map (nth x 1)))) (defn db->tree ... (if (= '[*] query) data (let [query (mapv #(if (param-expr? %) (first %) %) query) {props false joins true} (group-by #(or (join? %) (ident? %)) query)]
One thing I haven't worked out is whether it's necessary to handle QueryExpr and EdnSymbol cases separately.
ParamExpr := EdnList2(QueryExpr | EdnSymbol, ParamMapExpr)
The text was updated successfully, but these errors were encountered:
fixed c588189
Sorry, something went wrong.
No branches or pull requests
Currently db->tree doesn't handle queries which include ParamExpr.
It would be useful to strip these out in the case where a remote has processed the ParamExpr and the client simply needs to access the data.
Something like the code below might be suitable.
One thing I haven't worked out is whether it's necessary to handle QueryExpr and EdnSymbol cases separately.
The text was updated successfully, but these errors were encountered: