type github.com/jackc/pgx/v5/pgxpool.Tx
13 uses
github.com/jackc/pgx/v5/pgxpool (current package)
pool.go#L810: return &Tx{t: t, c: c}, nil
tx.go#L11: type Tx struct {
tx.go#L17: func (tx *Tx) Begin(ctx context.Context) (pgx.Tx, error) {
tx.go#L25: func (tx *Tx) Commit(ctx context.Context) error {
tx.go#L37: func (tx *Tx) Rollback(ctx context.Context) error {
tx.go#L46: func (tx *Tx) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) {
tx.go#L50: func (tx *Tx) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults {
tx.go#L54: func (tx *Tx) LargeObjects() pgx.LargeObjects {
tx.go#L65: func (tx *Tx) Prepare(ctx context.Context, name, sql string) (*pgconn.StatementDescription, error) {
tx.go#L69: func (tx *Tx) Exec(ctx context.Context, sql string, arguments ...any) (pgconn.CommandTag, error) {
tx.go#L73: func (tx *Tx) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error) {
tx.go#L77: func (tx *Tx) QueryRow(ctx context.Context, sql string, args ...any) pgx.Row {
tx.go#L81: func (tx *Tx) Conn() *pgx.Conn {