fix execute-all!
This commit is contained in:
parent
3a8bab7939
commit
07ff15574e
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
(:require
|
(:require
|
||||||
[next.jdbc :as jdbc]))
|
[next.jdbc :as jdbc]))
|
||||||
|
|
||||||
(defn execute-all! [{:keys [example/ds]} statements]
|
(defn execute-all! [ds statements]
|
||||||
(when (not-empty statements)
|
(when (not-empty statements)
|
||||||
(jdbc/with-transaction [tx ds]
|
(jdbc/with-transaction [tx ds]
|
||||||
(doseq [statement statements]
|
(doseq [statement statements]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue