refactoring: transaction manager PR #12203
This commit is contained in:
committed by
bergquist
parent
6775a82c82
commit
442e0e437b
@@ -0,0 +1,7 @@
|
||||
package models
|
||||
|
||||
import "context"
|
||||
|
||||
type TransactionManager interface {
|
||||
InTransaction(ctx context.Context, fn func(ctx context.Context) error) error
|
||||
}
|
||||
Reference in New Issue
Block a user