Documentation ¶ Index ¶ func Transact(db *gorm.DB, txFunc func(*gorm.DB) error, labels ...string) (err error) func TransactCustomError(db *gorm.DB, txFunc func(*gorm.DB) *webrender.RetError, labels ...string) (retval *webrender.RetError) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Transact ¶ func Transact(db *gorm.DB, txFunc func(*gorm.DB) error, labels ...string) (err error) Transact wraps in a trasaction https://stackoverflow.com/questions/16184238/database-sql-tx-detecting-commit-or-rollback func TransactCustomError ¶ added in v0.8.0 func TransactCustomError(db *gorm.DB, txFunc func(*gorm.DB) *webrender.RetError, labels ...string) (retval *webrender.RetError) Types ¶ This section is empty. Source Files ¶ View all Source files transact.go Click to show internal directories. Click to hide internal directories.