{"action":"created","issue":{"url":"https://api.github.com/repos/bketelsen/gorma/issues/12","labels_url":"https://api.github.com/repos/bketelsen/gorma/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/bketelsen/gorma/issues/12/comments","events_url":"https://api.github.com/repos/bketelsen/gorma/issues/12/events","html_url":"https://github.com/bketelsen/gorma/pull/12","id":124532958,"number":12,"title":"Allow access to DB object from Storage Interface","user":{"login":"moorereason","id":131056,"avatar_url":"https://avatars.githubusercontent.com/u/131056?v=3","gravatar_id":"","url":"https://api.github.com/users/moorereason","html_url":"https://github.com/moorereason","followers_url":"https://api.github.com/users/moorereason/followers","following_url":"https://api.github.com/users/moorereason/following{/other_user}","gists_url":"https://api.github.com/users/moorereason/gists{/gist_id}","starred_url":"https://api.github.com/users/moorereason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moorereason/subscriptions","organizations_url":"https://api.github.com/users/moorereason/orgs","repos_url":"https://api.github.com/users/moorereason/repos","events_url":"https://api.github.com/users/moorereason/events{/privacy}","received_events_url":"https://api.github.com/users/moorereason/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-01T06:15:37Z","updated_at":"2016-01-01T16:01:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bketelsen/gorma/pulls/12","html_url":"https://github.com/bketelsen/gorma/pull/12","diff_url":"https://github.com/bketelsen/gorma/pull/12.diff","patch_url":"https://github.com/bketelsen/gorma/pull/12.patch"},"body":"This commit adds a `DB()` function to the `{{typeName}}Storage` interface.  This\r\nis a potentially breaking change because I had to rename `{{typeName}}DB.DB` to\r\n`{{typeName}}DB.db`.  I don't like doing that, but it's the right move in this\r\ninstance, I think.\r\n\r\nFixes #11 "},"comment":{"url":"https://api.github.com/repos/bketelsen/gorma/issues/comments/168314081","html_url":"https://github.com/bketelsen/gorma/pull/12#issuecomment-168314081","issue_url":"https://api.github.com/repos/bketelsen/gorma/issues/12","id":168314081,"user":{"login":"bketelsen","id":37492,"avatar_url":"https://avatars.githubusercontent.com/u/37492?v=3","gravatar_id":"","url":"https://api.github.com/users/bketelsen","html_url":"https://github.com/bketelsen","followers_url":"https://api.github.com/users/bketelsen/followers","following_url":"https://api.github.com/users/bketelsen/following{/other_user}","gists_url":"https://api.github.com/users/bketelsen/gists{/gist_id}","starred_url":"https://api.github.com/users/bketelsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bketelsen/subscriptions","organizations_url":"https://api.github.com/users/bketelsen/orgs","repos_url":"https://api.github.com/users/bketelsen/repos","events_url":"https://api.github.com/users/bketelsen/events{/privacy}","received_events_url":"https://api.github.com/users/bketelsen/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T16:01:22Z","updated_at":"2016-01-01T16:01:22Z","body":"I'm not sure about this one.\r\nThe interface is there to insulate the service from the implementation (gorm)\r\nadding the DB() function couples the interface directly to gorm.\r\nLet me think on it a bit more\r\n"}}