MySQL 8.4.3
Source Code Documentation
|
Class to represent check constraint in the TABLE instance. More...
#include <sql_check_constraint.h>
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_generator * | value_generator () |
Value generator. More... | |
void | set_value_generator (Value_generator *val_gen) |
TABLE * | table () const |
Reference to owner table. More... | |
Public Member Functions inherited from Sql_check_constraint_share | |
Sql_check_constraint_share ()=default | |
Sql_check_constraint_share (const LEX_CSTRING &name, const LEX_CSTRING &expr_str, bool is_enforced) | |
LEX_CSTRING & | name () |
Constraint name. More... | |
LEX_CSTRING & | expr_str () |
Check expression in string form. More... | |
bool | is_enforced () |
Check constraint state (enforced / not enforced) More... | |
Private Attributes | |
Value_generator * | m_val_gen {nullptr} |
Value generator for the check constraint expression. More... | |
TABLE * | m_table {nullptr} |
Parent table reference. More... | |
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.
|
default |
|
inline |
|
inline |
|
inline |
Reference to owner table.
|
inline |
Value generator.
|
private |
Value generator for the check constraint expression.