MySQL 8.0.31
Source Code Documentation
dd::upgrade_57::Trigger_loader Class Reference

Class to handle loading and parsing of Triggers. More...

Static Public Member Functions

static bool trg_file_exists (const char *db_name, const char *table_name)
 Check if the TRG-file for the given table exists. More...
 
static bool load_triggers (THD *thd, MEM_ROOT *mem_root, const char *db_name, const char *table_name, List<::Trigger > *triggers)
 Load table triggers from .TRG file. More...
 

Detailed Description

Class to handle loading and parsing of Triggers.

This class is nececssary for loading triggers in case of upgrade from 5.7

Member Function Documentation

◆ load_triggers()

bool dd::upgrade_57::Trigger_loader::load_triggers ( THD thd,
MEM_ROOT mem_root,
const char *  db_name,
const char *  table_name,
List<::Trigger > *  triggers 
)
static

Load table triggers from .TRG file.

Parameters
[in]thdthread handle
[in]mem_rootMEM_ROOT pointer
[in]db_namename of schema
[in]table_namesubject table name
[out]triggerspointer to the list where new Trigger objects will be inserted
Returns
Operation status
Return values
trueFailure
falseSuccess

◆ trg_file_exists()

bool dd::upgrade_57::Trigger_loader::trg_file_exists ( const char *  db_name,
const char *  table_name 
)
static

Check if the TRG-file for the given table exists.

Parameters
db_namename of schema
table_namename of trigger
Returns
true if TRG-file exists, false otherwise.

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