This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-11
Channels
- # architecture (1)
- # babashka (61)
- # babashka-sci-dev (1)
- # beginners (85)
- # calva (112)
- # clj-kondo (279)
- # cljdoc (16)
- # cljs-dev (15)
- # cljsrn (7)
- # clojure (168)
- # clojure-europe (36)
- # clojure-nl (10)
- # clojure-spec (6)
- # clojure-uk (5)
- # clojured (1)
- # clojurescript (20)
- # core-async (16)
- # crypto (2)
- # cursive (13)
- # datomic (25)
- # events (7)
- # fulcro (21)
- # google-cloud (3)
- # graalvm (2)
- # graalvm-mobile (2)
- # gratitude (3)
- # helix (20)
- # honeysql (4)
- # hugsql (15)
- # introduce-yourself (15)
- # leiningen (2)
- # lsp (24)
- # luminus (22)
- # malli (21)
- # meander (11)
- # midje (1)
- # other-languages (1)
- # pathom (8)
- # re-frame (5)
- # reagent (5)
- # releases (2)
- # reveal (1)
- # shadow-cljs (18)
- # spacemacs (17)
- # sql (9)
- # tools-build (12)
- # tools-deps (4)
- # vim (12)
How might I express SELECT COUNT(*) > 0
in honeysql? I’ve got
:select [:%count.*]
so far for the count. Just trying to get that > 0 in there. Thanks!https://john.shaffe.rs/honeysql/?q=%7B%3Aselect%20%5B%5B%5B%3A%3E%20%5B%3Acount%20%3A*%5D%200%5D%5D%5D%7D&opt=%7B%3Achecking%20%3Astrict%0A%20%3Apretty%20true%7Dhttps://john.shaffe.rs/honeysql/?q=%7B%3Aselect%20%5B%5B%5B%3A%3E%20%5B%3Acount%20%3A*%5D%200%5D%5D%5D%7D&opt=%7B%3Achecking%20%3Astrict%7D {:select [[[:> [:count :*] 0]]]}
yeah, like that, but when I use that I get:
Execution error (AssertionError) at honeysql.format/seq->sql (format.cljc:385).
Assert failed: Alias should have two parts[[:> [:count :*] 0]]
(= 2 (count x))