Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.