Skip to content

Instantly share code, notes, and snippets.

@LauJensen
Created November 3, 2010 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save LauJensen/d835630aff8313980813 to your computer and use it in GitHub Desktop.
Save LauJensen/d835630aff8313980813 to your computer and use it in GitHub Desktop.
[] = Series of things 'this AND that'
{} = Key/val 'k=v'
#{} = 'this OR that'
clojureql.internal> (compile {:rank "Top"})
"rank=Top"
clojureql.internal> (compile [{:rank "Top"} {:title "Dev"}])
"rank=Top AND title=Dev"
clojureql.internal> (compile [{:rank "Top"} #{{:id 5} {:title "Dev"}}])
"rank=Top AND (title=Dev OR id=5)"
clojureql.internal> (compile #{{:rank "Top"} {:id 5}})
"(rank=Top OR id=5)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment