Fork me on GitHub
#luminus
<
2016-02-04
>
jmayaalv20:02:16

i’m trying to add a result processor for yesql (and luminus) like this:

(db/get-tenant {:tenantid tenantid} {:result-set-fn first})
I’m getting the following error when i execute the query: IllegalArgumentException db-spec {:result-set-fn #object[clojure.core$first__4339 0x7eee991b "[email protected]"]} is missing a required parameter clojure.java.jdbc/get-connection (jdbc.clj:292) The query works just fine without the processor. Anybody can point my on the right direction?

jmayaalv22:02:05

Found my problem. In case somebody finds it useful it turns out that conman (used by luminus) adds a wrapper to yesql. https://github.com/luminus-framework/conman/commit/73098c925b61971b41df0ebe41f7fc612acea4eb this is how i am using

(db/get-tenant {:tenantid tenantid} @db/*db* {:result-set-fn first})