Make it easier to use database types / drivers that java.jdbc does not know about

Description

Currently, you can use dbtype / dbname as a shorthand for the archaic classname / subprotocol / subname style of driver specification, but only for dbtype values that the library already knows about. It would be great if there was a shorthand way to specify the driver classname for drivers that the library doesn't already know about.

And this all needs to be documented better (both in the readme and on clojure-doc.org).

One possibility is to allow classname to be specified and to override the lookup-via-subprotocol, as is done for the legacy style db-spec. Another would be to allow dbtype to specify both subprotocol and driver class name, e.g., "somedb/com.whatever.Driver". The former feels less "magic"

Environment

None

Activity

Show:

Sean CorfieldMarch 23, 2017 at 8:47 PM

In 0.7.0-alpha3.

Sean CorfieldMarch 23, 2017 at 8:43 PM

dbtype/dbname connection now supports classname too.

Completed

Details

Assignee

Reporter

Priority

Created March 23, 2017 at 8:26 PM
Updated March 23, 2017 at 8:47 PM
Resolved March 23, 2017 at 8:47 PM