rollback calls to tx.Rollback and wraps the given error with the rollback error if occurred.
(tx dialect.Tx, err error)
| 2013 | |
| 2014 | // rollback calls to tx.Rollback and wraps the given error with the rollback error if occurred. |
| 2015 | func 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 | |
| 2022 | func edgeKeys(m map[string][]*EdgeSpec) []string { |
| 2023 | keys := make([]string, 0, len(m)) |
no test coverage detected
searching dependent graphs…