This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-28
Channels
- # babashka (28)
- # beginners (252)
- # bristol-clojurians (2)
- # calva (28)
- # cider (11)
- # clj-kondo (15)
- # cljs-dev (7)
- # clojure (378)
- # clojure-europe (4)
- # clojure-italy (4)
- # clojure-nl (3)
- # clojure-norway (4)
- # clojure-uk (32)
- # clojurescript (128)
- # cursive (39)
- # data-science (18)
- # docker (37)
- # figwheel-main (10)
- # fulcro (45)
- # ghostwheel (7)
- # graalvm (2)
- # hugsql (1)
- # jobs (2)
- # joker (5)
- # kaocha (5)
- # luminus (12)
- # off-topic (37)
- # onyx (4)
- # pathom (22)
- # pedestal (70)
- # re-frame (7)
- # reagent (30)
- # ring (4)
- # shadow-cljs (12)
- # spacemacs (1)
- # sql (26)
- # tools-deps (7)
- # vrac (2)
- # vscode (7)
- # xtdb (27)
I'm trying to use a Clojure Expression, but am getting a "SQL is empty" exception from https://github.com/layerware/hugsql/blob/master/hugsql-core/src/hugsql/parser.clj#L267. I've stared at my SQL but don't see a problem, but I must be missing something. Any suggestions?
-- :name get-all-things-sql! :query :many
-- :doc list all things or things with the specified ids
SELECT id AS "thing/id",
state AS "thing/state",
created_at AS "thing/created-at"
FROM things
--~ (if (empty? (:thing/id-seq params)) "" " WHERE id IN (:value*:thing/id-seq)")
;