{"issue":{"state":"closed","created_at":"2011-12-12T15:17:58Z","updated_at":"2011-12-12T20:11:34Z","comments":4,"user":{"gravatar_id":"22af2e9cbde8eb3d3558494edff58d36","id":2729,"url":"https://api.github.com/users/bickfordb","login":"bickfordb","avatar_url":"https://secure.gravatar.com/avatar/22af2e9cbde8eb3d3558494edff58d36?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"How do run a transaction/rollback?","assignee":null,"id":2523999,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"number":32,"title":"Transactions implemented?","html_url":"https://github.com/ibdknox/Korma/issues/32","closed_at":"2011-12-12T20:05:57Z","url":"https://api.github.com/repos/ibdknox/Korma/issues/32","milestone":null},"action":"created","comment":{"created_at":"2011-12-12T20:11:34Z","updated_at":"2011-12-12T20:11:34Z","user":{"gravatar_id":"5c30df226ea6e7f58c050d4ad6b4514b","id":70036,"url":"https://api.github.com/users/ibdknox","login":"ibdknox","avatar_url":"https://secure.gravatar.com/avatar/5c30df226ea6e7f58c050d4ad6b4514b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"You just wrap whatever you want to do in (transaction ... )\r\n\r\n```clojure\r\n(clojure.java.jdbc/transaction\r\n  (update groups (set-fields {:status 1}))\r\n  (some-fn-that-does-a-query)\r\n  (update users (set-fields {:field-doesnt-exist 34})))\r\n```\r\n\r\n","id":3111857,"url":"https://api.github.com/repos/ibdknox/Korma/issues/comments/3111857"}}