neo4j/exec-queries! now executes the queries in a single transaction

integration-tests
Josha von Gizycki 6 years ago
parent a8a16a0663
commit b8339001f0

@ -43,7 +43,7 @@
(qry session params)))
(defn exec-queries! [& tuples]
(with-open [session (db/get-session @conn)]
(db/with-transaction @conn tx
(doseq [tuple tuples]
(let [qry (first tuple)
params (second tuple)]
@ -51,7 +51,7 @@
(str (butiful-query qry)
"<br>---Params---<br>"
params))
(qry session params)))))
(qry tx params)))))
(defn now-str []
(time-format/unparse

Loading…
Cancel
Save