Manually destructure options
This commit is contained in:
parent
e85f627a00
commit
c7ebec1fa2
1 changed files with 3 additions and 1 deletions
|
|
@ -23,7 +23,9 @@
|
||||||
as read-only and/or rollback-only (so it will automatically rollback
|
as read-only and/or rollback-only (so it will automatically rollback
|
||||||
instead of committing any changes)."
|
instead of committing any changes)."
|
||||||
[^Connection con f opts]
|
[^Connection con f opts]
|
||||||
(let [{:keys [isolation read-only rollback-only]} opts
|
(let [isolation (:isolation opts)
|
||||||
|
read-only (:read-only opts)
|
||||||
|
rollback-only (:rollback-only opts)
|
||||||
old-autocommit (.getAutoCommit con)
|
old-autocommit (.getAutoCommit con)
|
||||||
old-isolation (.getTransactionIsolation con)
|
old-isolation (.getTransactionIsolation con)
|
||||||
old-readonly (.isReadOnly con)]
|
old-readonly (.isReadOnly con)]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue