boulder icon indicating copy to clipboard operation
boulder copied to clipboard

Add a method to db.Executor instances passed inside of db.WithTransaction

Open beautifulentropy opened this issue 1 year ago • 0 comments

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.

beautifulentropy avatar May 24 '24 22:05 beautifulentropy