codahale/dropwizard — pull request #69 by celkins (2012-03-28 22:32:40+00:00)
Title: Add ability to configure read-only database connections

Attempting to access a read-only database fails with the following error:

```! Caused by: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a
connection, pool error Could not create a validated object, cause: A read-only
user or a user in a read-only database is not permitted to disable read-only
mode on a connection.
!	at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:114)
!	at org.skife.jdbi.v2.DataSourceConnectionFactory.openConnection(DataSourceConnectionFactory.java:36)
!	at org.skife.jdbi.v2.DBI.open(DBI.java:192)
!	... 52 more```

This commit allows configuration of read-only connections while defaulting to the current behavior of forcing writable connections.