Skip to content

Commit 558cc24

Browse files
authored
Merge pull request #48 from avshvetz/master
[+] add `BeginTx` method into `pgxIface`, closes #47
2 parents f4fb55c + 54dadd4 commit 558cc24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pgxmock.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ type pgxIface interface {
112112
pgxMockIface
113113
Begin(context.Context) (pgx.Tx, error)
114114
BeginTxFunc(ctx context.Context, txOptions pgx.TxOptions, f func(pgx.Tx) error) (err error)
115+
BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error)
115116
Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
116117
Query(context.Context, string, ...interface{}) (pgx.Rows, error)
117118
QueryRow(context.Context, string, ...interface{}) pgx.Row

0 commit comments

Comments
 (0)