This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-22
Channels
- # announcements (1)
- # babashka (94)
- # beginners (11)
- # biff (9)
- # calva (21)
- # clj-kondo (14)
- # clojure (12)
- # clojure-europe (56)
- # clojure-nl (1)
- # clojure-norway (41)
- # clojure-uk (4)
- # clojurescript (4)
- # core-logic (2)
- # gratitude (12)
- # honeysql (1)
- # hoplon (3)
- # hugsql (7)
- # introduce-yourself (2)
- # jobs-discuss (23)
- # leiningen (3)
- # malli (11)
- # off-topic (1)
- # pedestal (11)
- # reagent (3)
- # squint (8)
- # vim (9)
- # xtdb (3)
is there a way to get a scalar value from HugSQL?
:? :1
syntax returns a map
-- :name select :? :1
SELECT MAX(foo) FROM bar;
returns {: 1}
. I want to return the value directly. (I do know I can use SELECT MAX(foo) AS foo FROM bar;
to change the keyword to :foo
, but wonder if I can return the 1 only.)
not according to the documentation
could add a new function to the hugsql.adapter interface maybe, :scalar or so for result-scalar
thanks!