Title: Web Development with Clojure 3e (vB17.0): Unknown dbtype (ch1 tests) p 15
Using conman version 0.8.4 brings the following error:
ERROR in (test-messages) (connection.clj:199)
Uncaught exception, not in assertion.
expected: nil
actual: clojure.lang.ExceptionInfo: Unknown dbtype:
{:datasource #object[com.zaxxer.hikari.HikariDataSource 0x4953c5f8 "HikariDataSource (HikariPool-1)"]}
Upgrading conman
to “0.9.1” is an easy solution.
For whoever in the future might look for this:
This is a typo-like mistake made by the author I believe. The example code was written with legacy subprotocol
and subname
while the author’s true intention is to use the preferred dbtype
and dbname
.
The paragraph right below the example code says:
In the preceding example, we’ve defined a connection for an instance of the PostgreSQL database by specifying the database type suing :dbtype
key and a name using the :dbname
key.
So we should really use these two instead.