sql

All things SQL and JDBC...
gmercer 2020-08-05T05:44:11.388100Z

Is there an example on the interwebs using next.jdbc ->pool with integrant?

gmercer 2020-08-05T08:27:37.390300Z

I got something ready to start but cannot get :serverTimezone to pass through the pooled datasource.

seancorfield 2020-08-05T16:32:23.392400Z

@gmercer Can you share the code you have? I would imagine something like this would work:

(defmethod ig/init-key :db/datasource [_ config]
  (next.jdbc.connection/->pool HikariDataSource (:db-pool-spec config)))
and :db-pool-spec would be a hash map in the config with all of the parameters to pass into HikariDataSource.