{"action":"created","issue":{"url":"https://api.github.com/repos/sfackler/r2d2/issues/14","labels_url":"https://api.github.com/repos/sfackler/r2d2/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/sfackler/r2d2/issues/14/comments","events_url":"https://api.github.com/repos/sfackler/r2d2/issues/14/events","html_url":"https://github.com/sfackler/r2d2/issues/14","id":93091067,"number":14,"title":"ManageConnection.has_broken implementation","user":{"login":"gwenn","id":45554,"avatar_url":"https://avatars.githubusercontent.com/u/45554?v=3","gravatar_id":"","url":"https://api.github.com/users/gwenn","html_url":"https://github.com/gwenn","followers_url":"https://api.github.com/users/gwenn/followers","following_url":"https://api.github.com/users/gwenn/following{/other_user}","gists_url":"https://api.github.com/users/gwenn/gists{/gist_id}","starred_url":"https://api.github.com/users/gwenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwenn/subscriptions","organizations_url":"https://api.github.com/users/gwenn/orgs","repos_url":"https://api.github.com/users/gwenn/repos","events_url":"https://api.github.com/users/gwenn/events{/privacy}","received_events_url":"https://api.github.com/users/gwenn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-05T08:36:00Z","updated_at":"2015-07-05T22:51:29Z","closed_at":null,"body":"Hello,\r\nWhat is the expected behaviour for an `has_broken` implementation ?\r\nShould the connection be dropped explicitly when broken ?\r\nShould the connection be considered broken when:\r\n* there is a pending transaction\r\n* there are busy statements\r\n?\r\n\r\nI am trying to create an adaptor for SQLite:\r\nhttps://github.com/gwenn/r2d2-sqlite.\r\n\r\nRegards"},"comment":{"url":"https://api.github.com/repos/sfackler/r2d2/issues/comments/118674565","html_url":"https://github.com/sfackler/r2d2/issues/14#issuecomment-118674565","issue_url":"https://api.github.com/repos/sfackler/r2d2/issues/14","id":118674565,"user":{"login":"sfackler","id":1455697,"avatar_url":"https://avatars.githubusercontent.com/u/1455697?v=3","gravatar_id":"","url":"https://api.github.com/users/sfackler","html_url":"https://github.com/sfackler","followers_url":"https://api.github.com/users/sfackler/followers","following_url":"https://api.github.com/users/sfackler/following{/other_user}","gists_url":"https://api.github.com/users/sfackler/gists{/gist_id}","starred_url":"https://api.github.com/users/sfackler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfackler/subscriptions","organizations_url":"https://api.github.com/users/sfackler/orgs","repos_url":"https://api.github.com/users/sfackler/repos","events_url":"https://api.github.com/users/sfackler/events{/privacy}","received_events_url":"https://api.github.com/users/sfackler/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T22:51:29Z","updated_at":"2015-07-05T22:51:29Z","body":"It will continue to be in a transaction. Transactions are managed through an [RAII based API](http://sfackler.github.io/rust-postgres/doc/v0.9.3/postgres/struct.Connection.html#method.transaction) that will statically prevent an active transaction if that API is used. If someone manually executes a `BEGIN` and forgets the accompanying `COMMIT` or `ROLLBACK`, nothing currently checks for that fact."}}