Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PgxExecute ¶
func PgxExecute[D txn.Doer[Txn, PgxBeginner]]( ctx context.Context, db PgxBeginner, do D, fn txn.DoFunc[Txn, PgxBeginner, D]) (D, error)
Types ¶
type PgxBeginner ¶
type PgxDoerBase ¶
type PgxDoerBase struct { txn.DoerBase[PgxOptions] }
func (*PgxDoerBase) IsReadOnly ¶
func (d *PgxDoerBase) IsReadOnly() bool
type PgxOptions ¶
type PgxOptions = *pgx.TxOptions
type PgxTxn ¶
type PgxTxn struct {
Raw PgxTx
}
func PgxBeginTxn ¶
func PgxBeginTxn(ctx context.Context, db PgxBeginner, opt PgxOptions) (*PgxTxn, error)
Click to show internal directories.
Click to hide internal directories.