Skip to content

Instantly share code, notes, and snippets.

@kumarshantanu
Created August 31, 2010 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kumarshantanu/558428 to your computer and use it in GitHub Desktop.
Save kumarshantanu/558428 to your computer and use it in GitHub Desktop.
(in-db db
(let [ea (find-by-criteria blog-entry-meta :cols count-col)
ew (find-by-criteria blog-entry-meta :cols count-col :where ["title=?" "Hello World"])]
(println "All records:" (read-count-col ea))
(println "Records with WHERE clause:" (read-count-col ew)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment