- Improvements to the
session
package to make manual transaction (begin, commit, rollback) easier and to improve support on nested transaction (that can possibly involve multiple different services).- The
Session
interface now has aContext() context.Context
method. Begin()
now also injects the transaction DB in the new session's context.Begin()
andTransaction()
now use the DB retrieved from the given context if available. This makes nested transactions possible even if the service is using the root session.
- The