MySQL 9.6.0
Source Code Documentation
No_fk_checks_guard Class Reference

Helper to temporarily enable OPTION_NO_FOREIGN_KEY_CHECKS within a scope and restore the thread option bits during exit. More...

Public Member Functions

 No_fk_checks_guard (THD *thd)
 
 ~No_fk_checks_guard ()
 
 No_fk_checks_guard (const No_fk_checks_guard &)=delete
 
No_fk_checks_guardoperator= (const No_fk_checks_guard &)=delete
 

Private Attributes

THDm_thd
 
ulonglong m_saved_bits
 

Detailed Description

Helper to temporarily enable OPTION_NO_FOREIGN_KEY_CHECKS within a scope and restore the thread option bits during exit.

This is used during foreign key cascade.

Constructor & Destructor Documentation

◆ No_fk_checks_guard() [1/2]

No_fk_checks_guard::No_fk_checks_guard ( THD thd)
inlineexplicit

◆ ~No_fk_checks_guard()

No_fk_checks_guard::~No_fk_checks_guard ( )
inline

◆ No_fk_checks_guard() [2/2]

No_fk_checks_guard::No_fk_checks_guard ( const No_fk_checks_guard )
delete

Member Function Documentation

◆ operator=()

No_fk_checks_guard & No_fk_checks_guard::operator= ( const No_fk_checks_guard )
delete

Member Data Documentation

◆ m_saved_bits

ulonglong No_fk_checks_guard::m_saved_bits
private

◆ m_thd

THD* No_fk_checks_guard::m_thd
private

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