MySQL 8.0.39
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:
[legend]

Public Member Functions

 Sql_check_constraint_share ()=default
 
 Sql_check_constraint_share (const LEX_CSTRING &name, const LEX_CSTRING &expr_str, bool is_enforced)
 
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 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. This information is obtained from the data-dictionary. The check expression is not in itemized (materialized) form here.

Constructor & Destructor Documentation

◆ Sql_check_constraint_share() [1/2]

Sql_check_constraint_share::Sql_check_constraint_share ( )
default

◆ Sql_check_constraint_share() [2/2]

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

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.

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: