Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails - schema configuration

How can I configure Grails (in DataSource.groovy file) to use specific schema that a given username has access to, but it is not necessarily the default schema for that user.

Thanks

like image 508
Sami Avatar asked Dec 30 '22 09:12

Sami


1 Answers

I found a way to do it. Simply, add

hibernate.default_schema = 'schemaName'

In DataSource.groovy

like image 127
Sami Avatar answered Jan 04 '23 16:01

Sami