Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func From ¶
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, opts ...PgxTxOption) tx.DB
NewDBFromPool instantiates new tx.DB *pgxpool.Pool wrapper
Types ¶
type PgxTxOption ¶ added in v2.2.0
type PgxTxOption func(pool *Pool)
PgxTxOption represents pgx driver transaction option
func WithTxOptions ¶ added in v2.2.0
func WithTxOptions(txOptions pgx.TxOptions) PgxTxOption
WithTxOptions allows us to set transaction options (eg. isolation level)
Click to show internal directories.
Click to hide internal directories.