seancorfield / next-jdbc

A modern low-level Clojure wrapper for JDBC-based access to databases.
https://cljdoc.org/d/com.github.seancorfield/next.jdbc/
Eclipse Public License 1.0
755 stars 90 forks source link

Support more clojure.java.jdbc hash map formats #207

Closed seancorfield closed 2 years ago

seancorfield commented 2 years ago

Is your feature request related to a problem? Please describe. When users are migrating from clojure.java.jdbc to next.jdbc, they may have to change their code around the handling of what c.j.j allows as a "db-spec". Whilst next.jdbc supports the :dbtype/:dbname approach, it doesn't support :connection-uri or :datasource, even though it supports the values of those keys directly.

Describe the solution you'd like It would be helpful to such users -- and projects such as https://github.com/yogthos/migratus for example -- if next.jdbc could accept these hash map formats and just "lift" those keys' values directly to be used.

Additional context Recent discussions where this has come up: