Skip to content

Commit

Permalink
Merge pull request #17 from rchodava/db-clients-with-just-urls
Browse files Browse the repository at this point in the history
Allow creating database clients with just URLs and no separate username & password
  • Loading branch information
rchodava committed Mar 14, 2016
2 parents dc02eaf + d4b12de commit e9ead48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private Database getDatabase() {
if (dataSource != null) {
connectionProvider = new DelegatingConnectionProvider(new ConnectionProviderFromDataSource(dataSource));
database = Database.from(connectionProvider);
} else if (url != null && username != null && password != null) {
} else if (url != null) {
connectionProvider = new DelegatingConnectionProvider(new ConnectionProviderPooled(url, username, password, 0, 10));
database = Database.from(connectionProvider);
}
Expand Down

0 comments on commit e9ead48

Please sign in to comment.