karaken12 opened a new issue, #14634:
URL: https://github.com/apache/grails-core/issues/14634
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.
I 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).
Example configuration syntax
```
dataSources:
default: sourceTwo
sourceOne:
driverClassName: org.h2.Driver
...
sourceTwo:
driverClassName: org.h2.Driver
...
sourceThree:
driverClassName: org.h2.Driver
...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]