{"action":"created","issue":{"url":"https://api.github.com/repos/Salesflare/hapi-plugin-mysql/issues/35","repository_url":"https://api.github.com/repos/Salesflare/hapi-plugin-mysql","labels_url":"https://api.github.com/repos/Salesflare/hapi-plugin-mysql/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/Salesflare/hapi-plugin-mysql/issues/35/comments","events_url":"https://api.github.com/repos/Salesflare/hapi-plugin-mysql/issues/35/events","html_url":"https://github.com/Salesflare/hapi-plugin-mysql/issues/35","id":150681792,"number":35,"title":"Directly decorate the request object?","user":{"login":"sfabriece","id":3108592,"avatar_url":"https://avatars.githubusercontent.com/u/3108592?v=3","gravatar_id":"","url":"https://api.github.com/users/sfabriece","html_url":"https://github.com/sfabriece","followers_url":"https://api.github.com/users/sfabriece/followers","following_url":"https://api.github.com/users/sfabriece/following{/other_user}","gists_url":"https://api.github.com/users/sfabriece/gists{/gist_id}","starred_url":"https://api.github.com/users/sfabriece/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfabriece/subscriptions","organizations_url":"https://api.github.com/users/sfabriece/orgs","repos_url":"https://api.github.com/users/sfabriece/repos","events_url":"https://api.github.com/users/sfabriece/events{/privacy}","received_events_url":"https://api.github.com/users/sfabriece/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Salesflare/hapi-plugin-mysql/labels/question","name":"question","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"AdriVanHoudt","id":2361826,"avatar_url":"https://avatars.githubusercontent.com/u/2361826?v=3","gravatar_id":"","url":"https://api.github.com/users/AdriVanHoudt","html_url":"https://github.com/AdriVanHoudt","followers_url":"https://api.github.com/users/AdriVanHoudt/followers","following_url":"https://api.github.com/users/AdriVanHoudt/following{/other_user}","gists_url":"https://api.github.com/users/AdriVanHoudt/gists{/gist_id}","starred_url":"https://api.github.com/users/AdriVanHoudt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdriVanHoudt/subscriptions","organizations_url":"https://api.github.com/users/AdriVanHoudt/orgs","repos_url":"https://api.github.com/users/AdriVanHoudt/repos","events_url":"https://api.github.com/users/AdriVanHoudt/events{/privacy}","received_events_url":"https://api.github.com/users/AdriVanHoudt/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2016-04-24T17:14:23Z","updated_at":"2016-04-26T15:37:49Z","closed_at":null,"body":"Is there a reason you chose to decorate the request 2 levels deep?\r\n\r\npossibility for \r\n```\r\nrequest.db\r\n```\r\ninstead of\r\n```\r\nrequest.app.db\r\n```"},"comment":{"url":"https://api.github.com/repos/Salesflare/hapi-plugin-mysql/issues/comments/214786254","html_url":"https://github.com/Salesflare/hapi-plugin-mysql/issues/35#issuecomment-214786254","issue_url":"https://api.github.com/repos/Salesflare/hapi-plugin-mysql/issues/35","id":214786254,"user":{"login":"AdriVanHoudt","id":2361826,"avatar_url":"https://avatars.githubusercontent.com/u/2361826?v=3","gravatar_id":"","url":"https://api.github.com/users/AdriVanHoudt","html_url":"https://github.com/AdriVanHoudt","followers_url":"https://api.github.com/users/AdriVanHoudt/followers","following_url":"https://api.github.com/users/AdriVanHoudt/following{/other_user}","gists_url":"https://api.github.com/users/AdriVanHoudt/gists{/gist_id}","starred_url":"https://api.github.com/users/AdriVanHoudt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdriVanHoudt/subscriptions","organizations_url":"https://api.github.com/users/AdriVanHoudt/orgs","repos_url":"https://api.github.com/users/AdriVanHoudt/repos","events_url":"https://api.github.com/users/AdriVanHoudt/events{/privacy}","received_events_url":"https://api.github.com/users/AdriVanHoudt/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T15:37:48Z","updated_at":"2016-04-26T15:37:48Z","body":"atm this plugin throws since it assumes that you always have a connection if the first one works.\r\nI could provide a function that get's called on error so you can gracefully handle it. Now with a pool if 1 connection fails it will remove it from the pool and try another one. see https://github.com/felixge/node-mysql#server-disconnects"}}