Hola, I'm trying to use a vector of sql file paths to bind into the db connection using conman
(def queries
["sql/users.sql"
"sql/items.sql"
"sql/comments.sql"])
(defstate ^:dynamic *db*
:start (if-let [jdbc-url (env :database-url)]
(conman/connect! {:jdbc-url jdbc-url})
(do
(log/warn "database connection URL was not found, please set :database-url in your config, e.g: dev-config.edn")
*db*))
:stop (conman/disconnect! *db*))
(apply conman/bind-connection *db* queries)
but raise a java.lang.RuntimeException: Can't take value of a macro: #'conman.core/bind-connectionbind-connection is a macro, not a function, so you can't use it with apply.