How to deal with GORM commit/rollback error

前端 未结 0 1777
面向向阳花
面向向阳花 2020-12-22 15:47

I just found that in GORM, the transaction commit might return error, like:

tx := db.begin()
// do somthing here
err := tx.Commit().Error

Als

相关标签:
回答
  • 消灭零回复
提交回复
热议问题