use interface to enable custom Tx types

This commit is contained in:
Alex Grintsvayg 2017-08-23 16:59:29 -04:00
parent 3abac13aeb
commit faec346481

View file

@ -19,7 +19,7 @@ type Transactor interface {
// Beginner begins transactions.
type Beginner interface {
Begin() (*sql.Tx, error)
Begin() (Transactor, error)
}
// Begin a transaction