MySQL  8.0.19
Source Code Documentation
Sql_check_constraint_share Class Reference

Class to represent check constraint in the TABLE_SHARE. More...

#include <sql_check_constraint.h>

Inheritance diagram for Sql_check_constraint_share:
Sql_table_check_constraint

Public Member Functions

 Sql_check_constraint_share ()=default
 
 Sql_check_constraint_share (const LEX_CSTRING &name, const LEX_CSTRING &expr_str, bool is_enforced)
 
 ~Sql_check_constraint_share ()
 
LEX_CSTRINGname ()
 Constraint name. More...
 
LEX_CSTRINGexpr_str ()
 Check expression in string form. More...
 
bool is_enforced ()
 Check constraint state (enforced / not enforced) More...
 

Private Member Functions

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

Private Attributes

LEX_CSTRING m_name {nullptr, 0}
 Check constraint name. More...
 
LEX_CSTRING m_expr_str {nullptr, 0}
 Check constraint expression. More...
 
bool m_is_enforced {true}
 Check constraint state. More...
 

Detailed Description

Class to represent check constraint in the TABLE_SHARE.

The instance of Sql_check_constraint_share contains information as name, state and expression in string form. These informations are filled from the data-dictionary. The check expression is not in itemized (materialized) form here.

Constructor & Destructor Documentation

◆ Sql_check_constraint_share() [1/3]

Sql_check_constraint_share::Sql_check_constraint_share ( )
default

◆ Sql_check_constraint_share() [2/3]

Sql_check_constraint_share::Sql_check_constraint_share ( const LEX_CSTRING name,
const LEX_CSTRING expr_str,
bool  is_enforced 
)
inline

◆ ~Sql_check_constraint_share()

Sql_check_constraint_share::~Sql_check_constraint_share ( )
inline

◆ Sql_check_constraint_share() [3/3]

Sql_check_constraint_share::Sql_check_constraint_share ( const Sql_check_constraint_share )
privatedelete

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

Member Function Documentation

◆ expr_str()

LEX_CSTRING& Sql_check_constraint_share::expr_str ( )
inline

Check expression in string form.

◆ is_enforced()

bool Sql_check_constraint_share::is_enforced ( )
inline

Check constraint state (enforced / not enforced)

◆ name()

LEX_CSTRING& Sql_check_constraint_share::name ( )
inline

Constraint name.

◆ operator=()

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

Member Data Documentation

◆ m_expr_str

LEX_CSTRING Sql_check_constraint_share::m_expr_str {nullptr, 0}
private

Check constraint expression.

◆ m_is_enforced

bool Sql_check_constraint_share::m_is_enforced {true}
private

Check constraint state.

◆ m_name

LEX_CSTRING Sql_check_constraint_share::m_name {nullptr, 0}
private

Check constraint name.


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