{"action":"created","issue":{"url":"https://api.github.com/repos/tomjaguarpaw/haskell-opaleye/issues/206","repository_url":"https://api.github.com/repos/tomjaguarpaw/haskell-opaleye","labels_url":"https://api.github.com/repos/tomjaguarpaw/haskell-opaleye/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/tomjaguarpaw/haskell-opaleye/issues/206/comments","events_url":"https://api.github.com/repos/tomjaguarpaw/haskell-opaleye/issues/206/events","html_url":"https://github.com/tomjaguarpaw/haskell-opaleye/issues/206","id":176244860,"number":206,"title":"Does Opaleye handle DB transactions?","user":{"login":"saurabhnanda","id":28369,"avatar_url":"https://avatars.githubusercontent.com/u/28369?v=3","gravatar_id":"","url":"https://api.github.com/users/saurabhnanda","html_url":"https://github.com/saurabhnanda","followers_url":"https://api.github.com/users/saurabhnanda/followers","following_url":"https://api.github.com/users/saurabhnanda/following{/other_user}","gists_url":"https://api.github.com/users/saurabhnanda/gists{/gist_id}","starred_url":"https://api.github.com/users/saurabhnanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saurabhnanda/subscriptions","organizations_url":"https://api.github.com/users/saurabhnanda/orgs","repos_url":"https://api.github.com/users/saurabhnanda/repos","events_url":"https://api.github.com/users/saurabhnanda/events{/privacy}","received_events_url":"https://api.github.com/users/saurabhnanda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-09-11T13:52:30Z","updated_at":"2016-09-14T02:12:05Z","closed_at":null,"body":"I couldn't find anything in the standard tutorials, source code search, or API docs. How do I wrap a bunch of SQL statements into a DB transaction with ability to rollback/commit?\r\n\r\nThe closest I could find is the [opaleye-trans library](https://hackage.haskell.org/package/opaleye-trans-0.3.2/docs/Opaleye-Trans.html#t:transaction), which seems to be using `withTransaction` provided by postgres-simple. Is that the recommend way?"},"comment":{"url":"https://api.github.com/repos/tomjaguarpaw/haskell-opaleye/issues/comments/246885034","html_url":"https://github.com/tomjaguarpaw/haskell-opaleye/issues/206#issuecomment-246885034","issue_url":"https://api.github.com/repos/tomjaguarpaw/haskell-opaleye/issues/206","id":246885034,"user":{"login":"saurabhnanda","id":28369,"avatar_url":"https://avatars.githubusercontent.com/u/28369?v=3","gravatar_id":"","url":"https://api.github.com/users/saurabhnanda","html_url":"https://github.com/saurabhnanda","followers_url":"https://api.github.com/users/saurabhnanda/followers","following_url":"https://api.github.com/users/saurabhnanda/following{/other_user}","gists_url":"https://api.github.com/users/saurabhnanda/gists{/gist_id}","starred_url":"https://api.github.com/users/saurabhnanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saurabhnanda/subscriptions","organizations_url":"https://api.github.com/users/saurabhnanda/orgs","repos_url":"https://api.github.com/users/saurabhnanda/repos","events_url":"https://api.github.com/users/saurabhnanda/events{/privacy}","received_events_url":"https://api.github.com/users/saurabhnanda/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T02:12:05Z","updated_at":"2016-09-14T02:12:05Z","body":"Are transactions not part of Opaleye because of time constraints or is it a conscious library design decision?"}}
{"actor":{"display_login":"saurabhnanda"}}