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
760 stars 90 forks source link

Migration docs need to warn about c.j.j ops inside n.j/with-transaction #171

Closed seancorfield closed 3 years ago

seancorfield commented 3 years ago

Because c.j.j ops attempt to create a (c.j.j) TX by default, if you use them inside next.jdbc/with-transaction operations will still be auto-committed.

You can either pass :transaction? false to all such nested c.j.j ops or convert them to next.jdbc calls (recommended).