MySQL 8.4.1
Source Code Documentation
classic_protocol::borrowable::session_track::TransactionState Class Reference

TransactionState changed. More...

#include <classic_protocol_session_track.h>

Public Member Functions

constexpr TransactionState (char trx_type, char read_unsafe, char read_trx, char write_unsafe, char write_trx, char stmt_unsafe, char resultset, char locked_tables)
 
constexpr TransactionState (std::span< char, 8 > val)
 
constexpr char trx_type () const noexcept
 
constexpr char read_unsafe () const noexcept
 
constexpr char read_trx () const noexcept
 
constexpr char write_unsafe () const noexcept
 
constexpr char write_trx () const noexcept
 
constexpr char stmt_unsafe () const noexcept
 
constexpr char resultset () const noexcept
 
constexpr char locked_tables () const noexcept
 

Private Attributes

char trx_type_
 
char read_unsafe_
 
char read_trx_
 
char write_unsafe_
 
char write_trx_
 
char stmt_unsafe_
 
char resultset_
 
char locked_tables_
 

Detailed Description

TransactionState changed.

  • trx_type: Explicit|Implicit|none
  • read_unsafe: one_or_more|none
  • read_trx: one_or_more|none
  • write_unsafe: one_or_more|none
  • write_trx: one_or_more|none
  • stmt_unsafe: one_or_more|none
  • resultset: one_or_more|none
  • locked_tables: one_or_more|none

implicit transaction: no autocommit, stmt against transactionable table without START TRANSACTION explicit transaction: START TRANSACTION

read_unsafe: read-operation against non-transactionable table read_trx: read-operation against transactionable table write_unsafe: write-operation against non-transactionable table write_trx: write-operation against transactionable table stmt_unsafe: an unusafe statement was executed like RAND() resultset: some resultset was sent locked_tables: some tables got locked explicitly

'resultset' may be triggered without 'read_trx' and 'read_unsafe' if a 'SELECT' was executed against 'dual' or without table.

see: session_track_transaction_info

Constructor & Destructor Documentation

◆ TransactionState() [1/2]

constexpr classic_protocol::borrowable::session_track::TransactionState::TransactionState ( char  trx_type,
char  read_unsafe,
char  read_trx,
char  write_unsafe,
char  write_trx,
char  stmt_unsafe,
char  resultset,
char  locked_tables 
)
inlineconstexpr

◆ TransactionState() [2/2]

constexpr classic_protocol::borrowable::session_track::TransactionState::TransactionState ( std::span< char, 8 >  val)
inlineconstexpr

Member Function Documentation

◆ locked_tables()

constexpr char classic_protocol::borrowable::session_track::TransactionState::locked_tables ( ) const
inlineconstexprnoexcept

◆ read_trx()

constexpr char classic_protocol::borrowable::session_track::TransactionState::read_trx ( ) const
inlineconstexprnoexcept

◆ read_unsafe()

constexpr char classic_protocol::borrowable::session_track::TransactionState::read_unsafe ( ) const
inlineconstexprnoexcept

◆ resultset()

constexpr char classic_protocol::borrowable::session_track::TransactionState::resultset ( ) const
inlineconstexprnoexcept

◆ stmt_unsafe()

constexpr char classic_protocol::borrowable::session_track::TransactionState::stmt_unsafe ( ) const
inlineconstexprnoexcept

◆ trx_type()

constexpr char classic_protocol::borrowable::session_track::TransactionState::trx_type ( ) const
inlineconstexprnoexcept

◆ write_trx()

constexpr char classic_protocol::borrowable::session_track::TransactionState::write_trx ( ) const
inlineconstexprnoexcept

◆ write_unsafe()

constexpr char classic_protocol::borrowable::session_track::TransactionState::write_unsafe ( ) const
inlineconstexprnoexcept

Member Data Documentation

◆ locked_tables_

char classic_protocol::borrowable::session_track::TransactionState::locked_tables_
private

◆ read_trx_

char classic_protocol::borrowable::session_track::TransactionState::read_trx_
private

◆ read_unsafe_

char classic_protocol::borrowable::session_track::TransactionState::read_unsafe_
private

◆ resultset_

char classic_protocol::borrowable::session_track::TransactionState::resultset_
private

◆ stmt_unsafe_

char classic_protocol::borrowable::session_track::TransactionState::stmt_unsafe_
private

◆ trx_type_

char classic_protocol::borrowable::session_track::TransactionState::trx_type_
private

◆ write_trx_

char classic_protocol::borrowable::session_track::TransactionState::write_trx_
private

◆ write_unsafe_

char classic_protocol::borrowable::session_track::TransactionState::write_unsafe_
private

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