This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-14
Channels
- # ai (4)
- # babashka (4)
- # beginners (46)
- # biff (5)
- # calva (12)
- # clojure (6)
- # clojure-austin (13)
- # clojure-dev (27)
- # clojure-europe (62)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojure-spec (2)
- # clojure-uk (12)
- # clojurescript (10)
- # cursive (3)
- # datahike (26)
- # datalevin (9)
- # datomic (7)
- # gratitude (4)
- # honeysql (9)
- # hyperfiddle (12)
- # instaparse (2)
- # lsp (65)
- # membrane (7)
- # missionary (2)
- # off-topic (8)
- # polylith (33)
- # portal (7)
- # quil (1)
- # re-frame (4)
- # reagent (18)
- # releases (3)
- # ring (3)
- # spacemacs (2)
- # specter (4)
Eg:
(-> (sql.h/insert-into :my-foo [:id
:jsonb-1
:jsonb-2
:frob])
(sql.h/values [[1
[:lift {}]
[:lift []]
[:lift "text"]]])
sql/format)
=> ["INSERT INTO my_foo (id, jsonb_1, jsonb_2, frob) VALUES (?, ?, ?, ?)" 1 {} [] "text"]
Already aware of this: https://clojurians.slack.com/archives/C66EM8D5H/p1643310886155809 I guess it would affect the prepared statement slightly :thinking_face:
Well, unless you start wrapping wrong things, i.e. data structures that HoneySQL is supposed to parse. :)
Thanks! Would you say this is rarely the case when passing values inside values
? In my case the values [1 {} [] "text"]
(or whatever values are passed in) would get wrapped with :lift
, no questions asked.