improve with-transaction docstring #188
This commit is contained in:
parent
d555d42e79
commit
6cf2cd52b8
1 changed files with 3 additions and 2 deletions
|
|
@ -359,8 +359,9 @@
|
|||
The options map supports:
|
||||
* `:isolation` -- `:none`, `:read-committed`, `:read-uncommitted`,
|
||||
`:repeatable-read`, `:serializable`,
|
||||
* `:read-only` -- `true` / `false`,
|
||||
* `:rollback-only` -- `true` / `false`."
|
||||
* `:read-only` -- `true` / `false` (`true` will make the `Connection` readonly),
|
||||
* `:rollback-only` -- `true` / `false` (`true` will make the transaction
|
||||
rollback, even if it would otherwise succeed)."
|
||||
[[sym transactable opts] & body]
|
||||
(let [con (vary-meta sym assoc :tag 'java.sql.Connection)]
|
||||
`(transact ~transactable (^{:once true} fn* [~con] ~@body) ~(or opts {}))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue