I am wondering if there is a way to change the database at runtime in grails - for example, in most commercial / openource CMS, they allow you to host the database server in another place, and you can specify the address on some configuration screen at runtime.
since grails configures the database server using DataSource.groovy, how do I access the internal data and change the database url? or database type even?
source
share