This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-09
Channels
- # announcements (17)
- # babashka (8)
- # beginners (68)
- # calva (28)
- # clj-kondo (36)
- # cljsrn (1)
- # clojure (232)
- # clojure-dev (3)
- # clojure-europe (13)
- # clojure-nl (14)
- # clojure-spec (9)
- # clojure-uk (11)
- # clojuredesign-podcast (3)
- # clojurescript (38)
- # core-async (3)
- # cursive (1)
- # datahike (4)
- # datomic (4)
- # fulcro (56)
- # graphql (1)
- # helix (3)
- # honeysql (5)
- # introduce-yourself (1)
- # kaocha (2)
- # lsp (67)
- # malli (7)
- # meander (2)
- # off-topic (1)
- # pathom (9)
- # re-frame (55)
- # reitit (3)
- # releases (8)
- # remote-jobs (12)
- # shadow-cljs (12)
- # sql (3)
- # tools-deps (55)
- # vim (5)
- # xtdb (3)
I’m trying to use honeysql to format an insert Prepared Statement with next.jdbc/execute-batch!
, how that seems not possible since honey.sql needs all the values up front to format the sql string appropriately, and I’m stuck using next.jdbc/execute!
. Are there idioms that I’m missing which would make things easier? Should I even be concerned with using execute-batch!
?
execute-batch!
exists for a very specific purpose, namely "repeating" the same statement -- typically an insert -- with lots (and often LOTS) of groups of parameters.
HoneySQL is designed to help you programmatically create single SQL statements with a (single) group of parameters.
@achan961117 Does that help?