zensols.cisql.spec
This package manages DB specs. It also class loads and optionally downloads the JDBC drivers.
db-spec
(db-spec conn)
Create a database spec used by the Clojure JDBC API. If the JDBC driver for the spec doesn’t exist it is downloaded and then class loaded.
The parameter conn is a map with string values and the following keys:
- :name name of the DB/JDBC connection implementation (ex: mysql)
- :user login user
- :password login passowrd
- :host name of server hosting the DB
- :database the database name
registered-names
(registered-names)
Return a sequence of provided drivers. These are the default driver information (not actual JDBC drivers).