Documentation
¶
Overview ¶
Package txutil contains transaction cleanup shared by database-owning packages. It deliberately has no project dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Rollback ¶
Rollback is a deferred transaction guard. A successful commit makes Rollback return sql.ErrTxDone, which is expected and ignored. On every other path a rollback failure is operationally relevant: join it to the primary error without replacing that error, or return it when cleanup was the only failure.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.