You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DatabaseConfigconfig = newDatabaseConfig();
...
finalDataSourceConfigdsConfig = config.getDataSourceConfig();
dsConfig.setUrl("jdbc:...");
dsConfig.setUsername("...");
dsConfig.setPassword("...");
dsConfig.setDriver("...");
dsConfig.addProperty("useSSL", false);
// set a url for the read-only DataSource// ... the username, password etc are copied from the "main" DataSourceConfigdsConfig.setReadOnlyUrl("jdbc:...");
returnDatabaseFactory.create(config)
So effectively we only need to additionally set dataSourceConfig.setReadOnlyUrl("jdbc:..."); on the 'main' DataSourceConfig.
This is an alternative to either:
// set a full read-only DataSource config.setReadOnlyDataSource(...)
// set a full read-only DataSourceConfig config.setReadOnlyDataSourceConfig(...)
The text was updated successfully, but these errors were encountered:
For example:
So effectively we only need to additionally set
dataSourceConfig.setReadOnlyUrl("jdbc:...");
on the 'main' DataSourceConfig.This is an alternative to either:
// set a full read-only DataSource
config.setReadOnlyDataSource(...)
// set a full read-only DataSourceConfig
config.setReadOnlyDataSourceConfig(...)
The text was updated successfully, but these errors were encountered: