RunInTransaction wraps fn into a transaction for the regular app database. It is safe to nest RunInTransaction calls as long as you use the callback's txApp.
(fn func(txApp App) error)
| 12 | // |
| 13 | // It is safe to nest RunInTransaction calls as long as you use the callback's txApp. |
| 14 | func (app *BaseApp) RunInTransaction(fn func(txApp App) error) error { |
| 15 | return app.runInTransaction(app.NonconcurrentDB(), fn, false) |
| 16 | } |
| 17 | |
| 18 | // AuxRunInTransaction wraps fn into a transaction for the auxiliary app database. |
| 19 | // |