use interface to enable custom Tx types
This commit is contained in:
parent
3abac13aeb
commit
faec346481
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ type Transactor interface {
|
|||
|
||||
// Beginner begins transactions.
|
||||
type Beginner interface {
|
||||
Begin() (*sql.Tx, error)
|
||||
Begin() (Transactor, error)
|
||||
}
|
||||
|
||||
// Begin a transaction
|
||||
|
|
Loading…
Reference in a new issue