MCPcopy Index your code
hub / github.com/apache/devlake / Rollback

Method Rollback

backend/impls/dalgorm/dalgorm_transaction.go:36–42  ·  view source on GitHub ↗

Rollback the transaction

()

Source from the content-addressed store, hash-verified

34
35// Rollback the transaction
36func (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
45func (t *DalgormTransaction) Commit() errors.Error {

Callers

nothing calls this directly

Calls 2

WrapMethod · 0.80
RollbackMethod · 0.65

Tested by

no test coverage detected