/gist:559c305e432ff0b0e41e Secret
Created
November 3, 2010 10:00
-
-
Save jido/559c305e432ff0b0e41e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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