boulder
boulder copied to clipboard
Add a method to db.Executor instances passed inside of db.WithTransaction
We have some functions inside of model.go which should only be called inside of a transaction but absolutely could be called outside of a transaction if the caller wasn't careful.
Modify db.WithTransaction func() to accept an Executor which meets the same interface but also includes a method that differentiates it.