pgxtxv5

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From(ctx context.Context) (pgx.Tx, bool)

From returns underlying pgx.Tx from the context. If you need to obtain a different interface back see tx.From

func NewDBFromPool

func NewDBFromPool(pool *pgxpool.Pool) tx.DB

NewDBFromPool instantiates new tx.DB *pgxpool.Pool wrapper

Types

type Pool

type Pool struct {
	*pgxpool.Pool
}

Pool implements tx.DB

func (*Pool) Begin

func (p *Pool) Begin(ctx context.Context) (tx.Transaction, error)

Begin begins pgx transaction

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL