MCPcopy Index your code
hub / github.com/ent/ent / rollback

Function rollback

dialect/sql/sqlgraph/graph.go:2015–2020  ·  view source on GitHub ↗

rollback calls to tx.Rollback and wraps the given error with the rollback error if occurred.

(tx dialect.Tx, err error)

Source from the content-addressed store, hash-verified

2013
2014// rollback calls to tx.Rollback and wraps the given error with the rollback error if occurred.
2015func rollback(tx dialect.Tx, err error) error {
2016 if rerr := tx.Rollback(); rerr != nil {
2017 err = fmt.Errorf("%w: %v", err, rerr)
2018 }
2019 return err
2020}
2021
2022func edgeKeys(m map[string][]*EdgeSpec) []string {
2023 keys := make([]string, 0, len(m))

Callers 4

UpdateNodeFunction · 0.70
nodesMethod · 0.70
nodeMethod · 0.70
nodesMethod · 0.70

Calls 1

RollbackMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…