Rollback the transaction
()
| 34 | |
| 35 | // Rollback the transaction |
| 36 | func (t *DalgormTransaction) Rollback() errors.Error { |
| 37 | r := t.db.Rollback() |
| 38 | if r.Error != nil { |
| 39 | return errors.Default.Wrap(r.Error, "failed to rollback transaction") |
| 40 | } |
| 41 | return nil |
| 42 | } |
| 43 | |
| 44 | // Commit the transaction |
| 45 | func (t *DalgormTransaction) Commit() errors.Error { |