MySQL  8.0.19
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:
Sql_check_constraint_share

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)
 
 ~Sql_table_check_constraint ()
 
Value_generatorvalue_generator ()
 Value generator. More...
 
void set_value_generator (Value_generator *val_gen)
 
TABLEtable () const
 Reference to owner table. More...
 

Private Member Functions

 Sql_table_check_constraint (const Sql_table_check_constraint &)=delete
 Delete default copy and assignment operator to avoid accidental destruction of shallow copied Sql_table_check_constraint objects. More...
 
Sql_table_check_constraintoperator= (const Sql_table_check_constraint &)=delete
 

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/3]

Sql_table_check_constraint::Sql_table_check_constraint ( )
default

◆ Sql_table_check_constraint() [2/3]

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

◆ ~Sql_table_check_constraint()

Sql_table_check_constraint::~Sql_table_check_constraint ( )

◆ Sql_table_check_constraint() [3/3]

Sql_table_check_constraint::Sql_table_check_constraint ( const Sql_table_check_constraint )
privatedelete

Delete default copy and assignment operator to avoid accidental destruction of shallow copied Sql_table_check_constraint objects.

Member Function Documentation

◆ operator=()

Sql_table_check_constraint& Sql_table_check_constraint::operator= ( const Sql_table_check_constraint )
privatedelete

◆ 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 files: