This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-24
Channels
- # announcements (8)
- # babashka (16)
- # beginners (18)
- # biff (4)
- # calva (18)
- # clj-kondo (20)
- # clojure (24)
- # clojure-brasil (1)
- # clojure-europe (13)
- # clojure-nl (1)
- # clojure-norway (35)
- # clojure-uk (3)
- # clojurescript (16)
- # core-async (50)
- # cursive (5)
- # data-science (5)
- # datalevin (5)
- # datomic (69)
- # dev-tooling (18)
- # fulcro (3)
- # gratitude (1)
- # honeysql (5)
- # hyperfiddle (4)
- # jackdaw (2)
- # jobs-discuss (24)
- # lambdaisland (7)
- # lsp (16)
- # malli (5)
- # off-topic (65)
- # overtone (16)
- # pathom (28)
- # portal (3)
- # re-frame (24)
- # releases (1)
- # shadow-cljs (101)
If you have a reserved SQL keyword as a column name, is there some way to query for it without using the fully-qualified keyword?
(-> (hh/select :to)
(hh/from :foo))
;; "SELECT to FROM foo"
(-> (hh/select :foo/to)
(hh/from :foo))
;; "SELECT FROM foo"
desired query is SELECT "to" FROM foo
.Yes, the :quoted
parameter is responsible for that. There are other parameters that can affect the relevant behavior.
(sql/format {:select :to})
=> ["SELECT to"]
(sql/format {:select :to} {:quoted true})
=> ["SELECT \"to\""]
@U2FRKM4TW do you know if there is a way to apply it to a single column in the selection?