This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-19
Channels
- # adventofcode (52)
- # babashka (47)
- # beginners (13)
- # clojure (36)
- # clojure-belgium (1)
- # clojure-europe (14)
- # clojure-nl (1)
- # clojure-norway (14)
- # clojurescript (2)
- # clojutre (9)
- # cursive (12)
- # datomic (3)
- # deps-new (3)
- # emacs (12)
- # fulcro (5)
- # guix (1)
- # honeysql (7)
- # introduce-yourself (1)
- # jobs (1)
- # kaocha (8)
- # lsp (5)
- # membrane (5)
- # mount (7)
- # nbb (5)
- # nrepl (2)
- # off-topic (60)
- # polylith (9)
- # reclojure (2)
- # reitit (8)
- # ring (17)
- # shadow-cljs (4)
- # spacemacs (31)
- # sql (7)
- # timbre (3)
- # xtdb (15)
I was using hikari-cp's clojure wrapper. What's the correct way to construct a HikariDataSource with hikari config values for use with next.jdbc? I was using jdbc.conn/->pool, but that only takes a class, and I would like to init the hikari datasource with my hikari configuration.
(def conn (atom nil)
(reset! conn (let [ds (jdbc/get-datasource db-spec)] (hikari/make-datasource (assoc hikari-config :datasource ds))))
No idea -- I don't use the hikari-cp
wrapper.
@U20LDTZBJ jdbc.conn/->pool
takes a class and a connection spec.
https://cljdoc.org/d/seancorfield/next.jdbc/1.2.659/api/next.jdbc.connection#-%3Epool
☝️:skin-tone-2: Yeah, I'm not sure what value that hikari-cp
wrapper provides, TBH.