Fork me on GitHub
#luminus
<
2018-01-24
>
xlevus20:01:21

has anybody successfully subbed out HugSQL with Korma (or another sql-dsl), or re-used the existing connections provided by conman in Korma?

xlevus20:01:33

I'm finding the raw-sql approach monumentally slow compared to everything else when trying to prototype some stuff.

xlevus21:01:03

oh, well that's somewhat simple with toucan

xlevus21:01:50

change the *db* state to

(defstate ^:dynamic *db*
  :start (-> (conman/connect! {:jdbc-url (env :database-url)})
             (toucan/set-default-db-connection!))
  :stop (conman/disconnect! *db*))
and it sorta... just works?