/gist:6fec4a139a299dc17627 Secret
Created
November 3, 2010 10:04
-
-
Save oranenj/6fec4a139a299dc17627 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
Compile could be a function that takes something like this: | |
(compile [:and [:eq 'rank "top"] ;; could use keywords too for the parameter | |
[:or [:eq 'title "dev"] [:eq 'id 5]]] | |
or as a sugared form using plain old functions: | |
(compile (cql/and {'rank "top"} | |
(cql/or {'title "dev" 'id 5}))) ; splice maps? so that don't have to write {'title "dev} {'id 5} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment