{"action":"opened","issue":{"url":"https://api.github.com/repos/AdamVig/GoCoApi/issues/25","repository_url":"https://api.github.com/repos/AdamVig/GoCoApi","labels_url":"https://api.github.com/repos/AdamVig/GoCoApi/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/AdamVig/GoCoApi/issues/25/comments","events_url":"https://api.github.com/repos/AdamVig/GoCoApi/issues/25/events","html_url":"https://github.com/AdamVig/GoCoApi/issues/25","id":164439774,"number":25,"title":"Improve database support","user":{"login":"AdamVig","id":5354752,"avatar_url":"https://avatars.githubusercontent.com/u/5354752?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamVig","html_url":"https://github.com/AdamVig","followers_url":"https://api.github.com/users/AdamVig/followers","following_url":"https://api.github.com/users/AdamVig/following{/other_user}","gists_url":"https://api.github.com/users/AdamVig/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamVig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamVig/subscriptions","organizations_url":"https://api.github.com/users/AdamVig/orgs","repos_url":"https://api.github.com/users/AdamVig/repos","events_url":"https://api.github.com/users/AdamVig/events{/privacy}","received_events_url":"https://api.github.com/users/AdamVig/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AdamVig/GoCoApi/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/AdamVig/GoCoApi/labels/epic","name":"epic","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"AdamVig","id":5354752,"avatar_url":"https://avatars.githubusercontent.com/u/5354752?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamVig","html_url":"https://github.com/AdamVig","followers_url":"https://api.github.com/users/AdamVig/followers","following_url":"https://api.github.com/users/AdamVig/following{/other_user}","gists_url":"https://api.github.com/users/AdamVig/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamVig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamVig/subscriptions","organizations_url":"https://api.github.com/users/AdamVig/orgs","repos_url":"https://api.github.com/users/AdamVig/repos","events_url":"https://api.github.com/users/AdamVig/events{/privacy}","received_events_url":"https://api.github.com/users/AdamVig/received_events","type":"User","site_admin":false},"assignees":[{"login":"AdamVig","id":5354752,"avatar_url":"https://avatars.githubusercontent.com/u/5354752?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamVig","html_url":"https://github.com/AdamVig","followers_url":"https://api.github.com/users/AdamVig/followers","following_url":"https://api.github.com/users/AdamVig/following{/other_user}","gists_url":"https://api.github.com/users/AdamVig/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamVig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamVig/subscriptions","organizations_url":"https://api.github.com/users/AdamVig/orgs","repos_url":"https://api.github.com/users/AdamVig/repos","events_url":"https://api.github.com/users/AdamVig/events{/privacy}","received_events_url":"https://api.github.com/users/AdamVig/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-07-08T01:04:39Z","updated_at":"2016-07-08T01:04:39Z","closed_at":null,"body":"Currently, the database (the app only supports one database) is abstracted behind a simple interface supporting `get` and `save` operations, and nothing else. The database interaction is handled by the `nano` library. An instance of `nano` is instantiated in the `db` module and shared by all modules that depend on it.\r\n\r\nPossible improvements:\r\n- [ ] Add support for multiple databases\r\n- [ ] Convert database to a class\r\n- [ ] Add classes for models (`Info` and `User` should suffice)\r\n    - `Model` will be a generic class for handling documents\r\n    - `Info` and `User` will extend `Model` and add methods as well as instantiate the appropriate database for each one using the `Database` class"}}
{"actor":{"display_login":"AdamVig"}}