Commit the transaction
()
| 43 | |
| 44 | // Commit the transaction |
| 45 | func (t *DalgormTransaction) Commit() errors.Error { |
| 46 | r := t.db.Commit() |
| 47 | if r.Error != nil { |
| 48 | return errors.Default.Wrap(r.Error, "failed to commit transaction") |
| 49 | } |
| 50 | return nil |
| 51 | } |
| 52 | |
| 53 | func (t *DalgormTransaction) LockTables(lockTables dal.LockTables) errors.Error { |
| 54 | switch t.Dialect() { |