{"action":"opened","issue":{"url":"https://api.github.com/repos/grails/grails-core/issues/10190","repository_url":"https://api.github.com/repos/grails/grails-core","labels_url":"https://api.github.com/repos/grails/grails-core/issues/10190/labels{/name}","comments_url":"https://api.github.com/repos/grails/grails-core/issues/10190/comments","events_url":"https://api.github.com/repos/grails/grails-core/issues/10190/events","html_url":"https://github.com/grails/grails-core/issues/10190","id":180106080,"number":10190,"title":"Multiple data sources: allow renaming default data source (feature request)","user":{"login":"karaken12","id":2051515,"avatar_url":"https://avatars.githubusercontent.com/u/2051515?v=3","gravatar_id":"","url":"https://api.github.com/users/karaken12","html_url":"https://github.com/karaken12","followers_url":"https://api.github.com/users/karaken12/followers","following_url":"https://api.github.com/users/karaken12/following{/other_user}","gists_url":"https://api.github.com/users/karaken12/gists{/gist_id}","starred_url":"https://api.github.com/users/karaken12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karaken12/subscriptions","organizations_url":"https://api.github.com/users/karaken12/orgs","repos_url":"https://api.github.com/users/karaken12/repos","events_url":"https://api.github.com/users/karaken12/events{/privacy}","received_events_url":"https://api.github.com/users/karaken12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-29T16:59:25Z","updated_at":"2016-09-29T16:59:25Z","closed_at":null,"body":"When using multiple data sources, there must be a default data source and it must be called 'dataSource'. In a project using several data sources, \"dataSource\" is not a useful semantic name. As a developer, I would like to be able to rename the default data source.\r\n\r\nI would expect this to be a configuration parameter. There is already a GORM syntax for referring to the default data source, so I would expect that to continue to work. I would also expect an incorrectly configured system to produce an intelligible error message (see #10144 for an example of the current stack trace).\r\n\r\nExample configuration syntax\r\n````\r\ndataSources:\r\n    default: sourceTwo\r\n    sourceOne:\r\n        driverClassName: org.h2.Driver\r\n        ...\r\n    sourceTwo:\r\n        driverClassName: org.h2.Driver\r\n        ...\r\n    sourceThree:\r\n        driverClassName: org.h2.Driver\r\n        ...\r\n````"}}
{"actor":{"display_login":"karaken12"}}