docstring for :rollback-only

This commit is contained in:
Jakub Holý 2021-10-19 15:38:37 +02:00 committed by GitHub
parent d555d42e79
commit 28305bab01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {}))))