remove incorrect type hint #256

This commit is contained in:
Sean Corfield 2023-08-09 22:12:38 -07:00
parent 044de70b49
commit cd214cb17e

View file

@ -453,14 +453,13 @@
* `:rollback-only` -- `true` / `false` (`true` will make the transaction * `:rollback-only` -- `true` / `false` (`true` will make the transaction
rollback, even if it would otherwise succeed)." rollback, even if it would otherwise succeed)."
[[sym transactable opts] & body] [[sym transactable opts] & body]
(let [con (vary-meta sym assoc :tag 'java.sql.Connection)]
`(let [tx# ~transactable] `(let [tx# ~transactable]
(transact tx# (transact tx#
(^{:once true} fn* (^{:once true} fn*
[con#] [con#] ; this is the unwrapped java.sql.connection
(let [~con (with-options con# (:options tx# {}))] (let [~sym (with-options con# (:options tx# {}))]
~@body)) ~@body))
~(or opts {}))))) ~(or opts {}))))
(defn with-logging (defn with-logging
"Given a connectable/transactable object and a sql/params logging "Given a connectable/transactable object and a sql/params logging