Fork me on GitHub
#luminus
<
2016-08-24
>
surreal.analysis02:08:23

@manutter51 I believe you need to call conman/bind-connection

jethroksy02:08:34

@manutter51 there's a namespace that loads the resource, you could just reload that namespace

surreal.analysis02:08:40

in core.clj, after the namespace declaration, you should see:

(defstate ^:dynamic *db*
           :start (conman/connect! {:jdbc-url (env :database-url)})
           :stop (conman/disconnect! *db*))

(conman/bind-connection *db* "sql/queries.sql”)

surreal.analysis02:08:47

The last line is what does it

surreal.analysis02:08:08

And yes, simply recompiling that file will reload it as @jethroksy mentioned

surreal.analysis02:08:18

Tag team answering a question six hours later 🙂

jethroksy02:08:27

hahaha it's morning here 🙂

surreal.analysis02:08:02

I just found it a little funny we both happened to decide to answer at the same time, quite a bit after it was posted 🙂

surreal.analysis02:08:08

If you want to learn more, I’d read the README here - https://github.com/luminus-framework/conman

manutter5111:08:00

Ok, thanks folks. That’ll work.