(db *sql.DB, txn *sql.Tx, f func(txn *sql.Tx) error)
| 18 | } |
| 19 | |
| 20 | func (w *DummyWriter) Do(db *sql.DB, txn *sql.Tx, f func(txn *sql.Tx) error) error { |
| 21 | if db != nil && txn == nil { |
| 22 | return WithTransaction(db, func(txn *sql.Tx) error { |
| 23 | return f(txn) |
| 24 | }) |
| 25 | } else { |
| 26 | return f(txn) |
| 27 | } |
| 28 | } |
nothing calls this directly
no test coverage detected