Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(where) = selection condition
{} = Key/val... 'k=v'
[] = 'this OR that'
clojureql.internal> (compile (where {:rank "Top"}))
"rank=Top"
clojureql.internal> (compile (where {:rank "Top"} {:title "Dev"}))
"rank=Top AND title=Dev"
clojureql.internal> (compile (where {:rank "Top"} [{:id 5} {:title "Dev"}]))
"rank=Top AND (title=Dev OR id=5)"
clojureql.internal> (compile (where [{:rank "Top"} {:id 5}]))
"(rank=Top OR id=5)"
clojureql.internal> (compile (where [{:rank "Top"} {:id 5 :title "Dev"}])
"rank=Top OR (title=Dev AND id=5)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.