This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-08
Channels
- # aleph (2)
- # aws (1)
- # beginners (172)
- # boot (15)
- # cider (17)
- # clara (7)
- # cljs-dev (22)
- # cljsrn (12)
- # clojars (3)
- # clojure (110)
- # clojure-dev (5)
- # clojure-italy (13)
- # clojure-sanfrancisco (5)
- # clojure-spec (3)
- # clojure-uk (31)
- # clojurescript (110)
- # community-development (2)
- # cursive (16)
- # datomic (19)
- # docs (4)
- # emacs (49)
- # fulcro (24)
- # jobs (5)
- # keechma (2)
- # lein-figwheel (41)
- # leiningen (10)
- # luminus (4)
- # lumo (24)
- # mount (24)
- # numerical-computing (1)
- # off-topic (16)
- # om (4)
- # onyx (6)
- # parinfer (9)
- # planck (8)
- # re-frame (7)
- # reagent (6)
- # shadow-cljs (125)
- # sql (5)
- # test-check (9)
- # unrepl (6)
- # yada (5)
Any hints about how to insert clojure vectors or lists using multi-insert!? I’m trying to generate vectors from a spec and insert them.
@drewverlee Not sure what you mean by inserting Clojure vectors... insert-multi!
accepts a sequence of hash maps to insert multiple rows... is that what you mean?
@drewverlee you mean something like:
(jdbc/insert-multi! conn
:table_name
[:col-name1 :col-name2 :col-name3]
[["row1-val1" "row1-val2" "row1-val3"]
["row2-val1" "row2-val2" "row2-val3"]])
?Short answer on phone: yea
if not exactly that, there's a few more examples of insert-multi!
in the docs at http://clojure-doc.org/articles/ecosystem/java_jdbc/using_sql.html#inserting-multiple-rows