Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hound672 committed Aug 14, 2023
1 parent 9458a41 commit f49c11e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pgx/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/jackc/pgx/v4"
)

// Tr is an interface to work with pgx.Conn or pgx.Tx.
// Tr is an interface to work with pgx.Conn, pxpool.Conn or pgxpool.Pool
// StmtContext and Stmt are not implemented!
type Tr interface {
Begin(ctx context.Context) (pgx.Tx, error)
Expand All @@ -23,7 +23,7 @@ type Tr interface {
QueryFunc(ctx context.Context, sql string, args []interface{}, scans []interface{}, f func(pgx.QueryFuncRow) error) (pgconn.CommandTag, error)
}

// Transactional is an interface work with pgx.Conn or pgxpool.Pool
// Transactional is an interface to work with pgx.Conn, pxpool.Conn or pgxpool.Pool
type Transactional interface {
BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error)
}

0 comments on commit f49c11e

Please sign in to comment.