seancorfield / next-jdbc

A modern low-level Clojure wrapper for JDBC-based access to databases.
https://cljdoc.org/d/com.github.seancorfield/next.jdbc/
Eclipse Public License 1.0
768 stars 90 forks source link

with-options/with-transaction require manual rewrapping #172

Closed seancorfield closed 2 years ago

seancorfield commented 3 years ago

Can we provide an alternative to with-transaction that detects and does the rewrapping automatically on the bound TX?

seancorfield commented 2 years ago

Although I've closed out two more general tickets around wrapped connections, I'm going to keep this one open as a narrower problem that might be worth solving at some point.

seancorfield commented 2 years ago

After a lot of consideration and experimentation over the last month, I've concluded that this isn't realistic, given the contracts already in place: