<< Back to previous view

[JDBC-151] Make it easier to use database types / drivers that java.jdbc does not know about Created: 23/Mar/17  Updated: 23/Mar/17  Resolved: 23/Mar/17

Status: Closed
Project: java.jdbc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Major
Reporter: Sean Corfield Assignee: Sean Corfield
Resolution: Completed Votes: 0
Labels: None


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"

Comment by Sean Corfield [ 23/Mar/17 2:43 PM ]

dbtype/dbname connection now supports classname too.

Comment by Sean Corfield [ 23/Mar/17 2:47 PM ]

In 0.7.0-alpha3.

Generated at Wed Mar 29 20:04:04 CDT 2017 using JIRA 4.4#649-r158309.