'clojure next.jdbc database connection via configuration, without adding driver as dependency
I'm writing a sql tool in clojure that should be able to connect to any database. Something like a light version of HeidiSQl or DBeaver.
I'm using next.jdbc.
Unfortunately the documentation states: JDBC drivers are not provided by next.jdbc -- you need to specify the driver(s) you need as additional dependencies in your project.
But I don't want my application to have a dependency to all supported databases. Say for instance I want to support Oracle, MS SQL and PostgreSQL. I can't demand the end-user to have to install all these 3 drivers if he just want to use my application to connect to PostgreSQL.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
