From f49c11e8d045a32b116ac1cfd02a58817b101199 Mon Sep 17 00:00:00 2001 From: hound672 Date: Mon, 14 Aug 2023 19:47:08 +0300 Subject: [PATCH] Update comments --- pgx/contract.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pgx/contract.go b/pgx/contract.go index 08467dd..c352755 100644 --- a/pgx/contract.go +++ b/pgx/contract.go @@ -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) @@ -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) }