This breaks any existing code that passes java.sql.Connection or javax.sql.DataSource through the :db field as instructed in Alternative setup and upgrades from the version 1.2.4.
Luckily this issue can be side-stepped by using either:
(def config {:db {:datasource <datasource>}})
or
(def config {:db {:connection <connection>}})
I think that the documentation or code (or both) needs to be adjusted.
The PR #174 changed the
connect*
call fromto
on line database.clj:248.
This breaks any existing code that passes
java.sql.Connection
orjavax.sql.DataSource
through the:db
field as instructed in Alternative setup and upgrades from the version 1.2.4.Luckily this issue can be side-stepped by using either:
or
I think that the documentation or code (or both) needs to be adjusted.