MySQL 8.4.0
Source Code Documentation
TrxFactory Struct Reference

For managing the life-cycle of the trx_t instance that we get from the pool. More...

Static Public Member Functions

static void init (trx_t *trx)
 Initializes a transaction object. More...
 
static void destroy (trx_t *trx)
 Release resources held by the transaction object. More...
 
static bool debug (const trx_t *trx)
 Enforce any invariants here, this is called before the transaction is added to the pool. More...
 

Detailed Description

For managing the life-cycle of the trx_t instance that we get from the pool.

Member Function Documentation

◆ debug()

static bool TrxFactory::debug ( const trx_t trx)
inlinestatic

Enforce any invariants here, this is called before the transaction is added to the pool.

Returns
true if all OK

◆ destroy()

static void TrxFactory::destroy ( trx_t trx)
inlinestatic

Release resources held by the transaction object.

Parameters
trxthe transaction for which to release resources

◆ init()

static void TrxFactory::init ( trx_t trx)
inlinestatic

Initializes a transaction object.

It must be explicitly started with trx_start_if_not_started() before using it. The default isolation level is TRX_ISO_REPEATABLE_READ.

Parameters
trxTransaction instance to initialise

The documentation for this struct was generated from the following file: