Fork me on GitHub
#luminus
<
2016-05-11
>
jethroksy03:05:47

Hi, anyone using conman?

jethroksy03:05:08

I have a db state as such:

(defstate ^:dynamic *db*
  :start (conman/connect! {:adapter    :postgresql
                           :init-size  1
                           :min-idle   1
                           :max-idle   4
                           :max-active 32
                           :username (env :username)
                           :password (env :password)
                           :jdbc-url   (env :jdbc-url)})
  :stop (conman/disconnect! *db*))

jethroksy03:05:38

and i'm getting:

jethroksy03:05:42

java.lang.RuntimeException: could not start [#'edubot.db/*db*] due to
java.lang.IllegalArgumentException: Invalid configuration options: (:adapter)

jethroksy03:05:55

but this seems to be how it's laid out in the README

jethroksy03:05:52

seems like the problem is only in 0.5.4 and not in 0.5.1

plexus07:05:02

I just have this

plexus07:05:06

(defstate ^:dynamic *db*
          :start (conman/connect!
                   {:init-size  1
                    :min-idle   1
                    :max-idle   4
                    :max-active 32
                    :jdbc-url   (env :database-url)})
          :stop (conman/disconnect! *db*))

plexus07:05:03

with $DATABASE_URL looking like this: jdbc:postgresql://<hostname>/<db>?user=<user>&password=<pwd>

plexus07:05:52

that's how lein new luminus <project-name> +postgres generates it

jethroksy07:05:38

yeah I ended up with that as well

jethroksy07:05:56

what version of conman are you using? @plexus

plexus07:05:26

ah yeah it's 0.5.1

jethroksy07:05:32

I'll probe further maybe, and create an issue if it turns up again