Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoScope = errors.New("no transaction scope")
)
Functions ¶
Types ¶
type Queryable ¶
type TransactionScope ¶
type TransactionScope struct {
// contains filtered or unexported fields
}
func NewTransactionScope ¶
func ScopeIfAny ¶
func ScopeIfAny(ctx context.Context) *TransactionScope
func (*TransactionScope) Rollback ¶
func (scope *TransactionScope) Rollback(ctx context.Context) error
func (*TransactionScope) Tx ¶
func (scope *TransactionScope) Tx(db *pgxpool.Pool) pgx.Tx
type TransactionScopeKey ¶
type TransactionScopeKey string
Click to show internal directories.
Click to hide internal directories.