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

Loading…
Cancel
Save