MySQL 8.4.2
Source Code Documentation
Disable_autocommit_guard Class Reference

RAII class for temporarily turning off @autocommit in the connection. More...

#include <thd_raii.h>

Public Member Functions

 Disable_autocommit_guard (THD *thd)
 
 ~Disable_autocommit_guard ()
 

Private Attributes

THDm_thd
 
ulonglong m_save_option_bits
 

Detailed Description

RAII class for temporarily turning off @autocommit in the connection.

Constructor & Destructor Documentation

◆ Disable_autocommit_guard()

Disable_autocommit_guard::Disable_autocommit_guard ( THD thd)
inlineexplicit
Parameters
thdnon-NULL - pointer to the context of connection in which @autocommit mode needs to be disabled. NULL - if @autocommit mode needs to be left as is.

◆ ~Disable_autocommit_guard()

Disable_autocommit_guard::~Disable_autocommit_guard ( )
inline

Member Data Documentation

◆ m_save_option_bits

ulonglong Disable_autocommit_guard::m_save_option_bits
private

◆ m_thd

THD* Disable_autocommit_guard::m_thd
private

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