Good Day Folks
Forgive me if this has been asked before but I have not found a satisfactory answer in my searches:

- is there a way in Grails configuration to mark the defined datasource as being read only and prevent the application from trying to modify tables at startup ?

The only way I have managed anything close is to use the Datasources plugin where i have a configuration like :

Code:
 datasources = {

	datasource(name: 'nicealias') {
		domainClasses([com.my.domain.class.InsuranceClaim,
		               com.my.domain.class.Policy])
		readOnly(true)
		driverClassName('com.microsoft.sqlserver.jdbc.SQLServerDriver')
		url('jdbc:sqlserver://localhost:1433;databaseName=ClaimDB')
		username('password')
		password('password')
		dbCreate('update')
		logSql(true)
		dialect(org.hibernate.dialect.SQLServerDialect)
		hibernate {
			cache {
				use_second_level_cache(false)
				use_query_cache(false)
			}
		}
	}

}
however..is there a way to do it without the Datasources plugin - which I LOVE by the way.

thanks