MySQL 8.3.0
Source Code Documentation
Sql_table_check_constraint Class Reference

Class to represent check constraint in the TABLE instance. More...

#include <sql_check_constraint.h>

Inheritance diagram for Sql_table_check_constraint:
[legend]

Public Member Functions

 Sql_table_check_constraint ()=default
 
 Sql_table_check_constraint (const LEX_CSTRING &name, const LEX_CSTRING &expr_str, bool is_enforced, Value_generator *val_gen, TABLE *table)
 
Value_generatorvalue_generator ()
 Value generator. More...
 
void set_value_generator (Value_generator *val_gen)
 
TABLEtable () const
 Reference to owner table. More...
 

Private Attributes

Value_generatorm_val_gen {nullptr}
 Value generator for the check constraint expression. More...
 
TABLEm_table {nullptr}
 Parent table reference. More...
 

Detailed Description

Class to represent check constraint in the TABLE instance.

The Sql_table_check_constraint is a Sql_check_constraint_share with reference to the parent TABLE instance and itemized (materialized) form of check constraint expression. Sql_table_check_constraint is prepared from the Sql_check_constraint_share of TABLE_SHARE instance.

Constructor & Destructor Documentation

◆ Sql_table_check_constraint() [1/2]

Sql_table_check_constraint::Sql_table_check_constraint ( )
default

◆ Sql_table_check_constraint() [2/2]

Sql_table_check_constraint::Sql_table_check_constraint ( const LEX_CSTRING name,
const LEX_CSTRING expr_str,
bool  is_enforced,
Value_generator val_gen,
TABLE table 
)
inline

Member Function Documentation

◆ set_value_generator()

void Sql_table_check_constraint::set_value_generator ( Value_generator val_gen)
inline

◆ table()

TABLE * Sql_table_check_constraint::table ( ) const
inline

Reference to owner table.

◆ value_generator()

Value_generator * Sql_table_check_constraint::value_generator ( )
inline

Value generator.

Member Data Documentation

◆ m_table

TABLE* Sql_table_check_constraint::m_table {nullptr}
private

Parent table reference.

◆ m_val_gen

Value_generator* Sql_table_check_constraint::m_val_gen {nullptr}
private

Value generator for the check constraint expression.


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