docstring for :rollback-only
This commit is contained in:
parent
d555d42e79
commit
28305bab01
1 changed files with 1 additions and 1 deletions
|
|
@ -360,7 +360,7 @@
|
||||||
* `:isolation` -- `:none`, `:read-committed`, `:read-uncommitted`,
|
* `:isolation` -- `:none`, `:read-committed`, `:read-uncommitted`,
|
||||||
`:repeatable-read`, `:serializable`,
|
`:repeatable-read`, `:serializable`,
|
||||||
* `:read-only` -- `true` / `false`,
|
* `:read-only` -- `true` / `false`,
|
||||||
* `:rollback-only` -- `true` / `false`."
|
* `:rollback-only` -- `true` / `false` - set the transaction to always rollback, even on success"
|
||||||
[[sym transactable opts] & body]
|
[[sym transactable opts] & body]
|
||||||
(let [con (vary-meta sym assoc :tag 'java.sql.Connection)]
|
(let [con (vary-meta sym assoc :tag 'java.sql.Connection)]
|
||||||
`(transact ~transactable (^{:once true} fn* [~con] ~@body) ~(or opts {}))))
|
`(transact ~transactable (^{:once true} fn* [~con] ~@body) ~(or opts {}))))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue