minor cleanup
This commit is contained in:
parent
2f5d432440
commit
481284e127
|
@ -11,7 +11,9 @@
|
|||
(defmacro with-view-transaction
|
||||
"Like jdbc's with-db-transaction, but sends view hints at end of transaction."
|
||||
[binding & forms]
|
||||
(let [tvar (first binding), db (second binding), args (drop 2 binding)]
|
||||
(let [tvar (first binding)
|
||||
db (second binding)
|
||||
args (drop 2 binding)]
|
||||
`(if (:views-honeysql/hints ~db) ;; check if we are in a nested transaction
|
||||
(let [~tvar ~db] ~@forms)
|
||||
(let [hints# (atom [])
|
||||
|
|
Loading…
Reference in a new issue