Fork me on GitHub
#sql
<
2020-08-05
>
gmercer05:08:11

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

gmercer08:08:37

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

seancorfield16:08:23

@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.