Skip to content

Instantly share code, notes, and snippets.

@mefesto
Created August 25, 2010 21:22
Show Gist options
  • Select an option

  • Save mefesto/550320 to your computer and use it in GitHub Desktop.

Select an option

Save mefesto/550320 to your computer and use it in GitHub Desktop.
(require '[clojure.contrib.sql :as sql])
(sql/with-connection dbspec
(sql/transaction
(sql/do-prepared
"update mytable set counter = counter + 1
where id = ?"
[1000])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment