This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-04
Channels
- # aatree (5)
- # admin-announcements (37)
- # alda (1)
- # announcements (4)
- # architecture (1)
- # aws (3)
- # beginners (82)
- # boot (230)
- # braid-chat (14)
- # cider (48)
- # cljs-dev (8)
- # cljsrn (31)
- # clojars (47)
- # clojure (72)
- # clojure-austin (2)
- # clojure-russia (396)
- # clojurescript (72)
- # community-development (3)
- # component (6)
- # core-async (6)
- # cursive (26)
- # datomic (42)
- # emacs (6)
- # events (35)
- # hoplon (57)
- # immutant (3)
- # jobs (2)
- # jobs-discuss (10)
- # ldnclj (16)
- # luminus (2)
- # off-topic (50)
- # om (181)
- # parinfer (285)
- # proton (68)
- # re-frame (19)
- # reagent (2)
- # ring-swagger (23)
- # yada (36)
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 "clojure.core$first__4339@7eee991b"]} 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?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})