Closed seancorfield closed 9 months ago
Note to self: there is no with-connection
because the assumption is you would use with-open
and get-connection
instead -- and only one of the four arities of get-connection
could be used here by default.
Added on-connection+options
.
Is your feature request related to a problem? Please describe. For people using
with-options
, it's inconvenient to have to manually rewrap ajava.sql.Connection
(produced bywith-transaction
andon-connection
) with their options again. Provide a way to havenext.jdbc
auto-wrap theConnection
object.Describe the solution you'd like Variants of
with-transaction
andon-connection
that auto-wrap the bound symbol with any options from the original "transactable" or "connectable".Describe alternatives you've considered Modifying
with-transaction
andon-connection
to do this automatically -- potentially breaking change since any existing code that assumesjava.sql.Connection
and performs interop on it would break.