![]() |
MySQL 9.7.0
Source Code Documentation
|
Class representing SET DEFAULT, DROP DEFAULT, RENAME COLUMN, SET VISIBLE and SET INVISIBLE clause in ALTER TABLE statement. More...
#include <sql_alter.h>
Public Types | |
| enum class | Type { SET_DEFAULT , SET_MASKING_POLICY , DROP_DEFAULT , DROP_MASKING_POLICY , RENAME_COLUMN , SET_COLUMN_VISIBLE , SET_COLUMN_INVISIBLE } |
Public Member Functions | |
| LEX_CSTRING | new_masking_policy_name () const |
| The new masking policy name. More... | |
| Type | change_type () const |
| Type of change requested in ALTER TABLE. More... | |
| Alter_column (const char *par_name, Item *literal) | |
| Constructor used when altering the field's default value with a literal constant or when dropping a field's default value. More... | |
| Alter_column (const char *col_name, LEX_CSTRING policy_name) | |
| Constructor for assigning or unassigning a column's MASKING POLICY. More... | |
| Alter_column (const char *par_name, Value_generator *gen_def) | |
| Constructor used when setting a field's DEFAULT value to an expression. More... | |
| Alter_column (const char *old_name, const char *new_name) | |
| Constructor used while renaming field name. More... | |
| Alter_column (const char *par_name, bool par_is_visible) | |
| Constructor used while altering column visibility. More... | |
Public Attributes | |
| const char * | name |
| The column name being altered. More... | |
| Item * | def {nullptr} |
| The default value supplied. More... | |
| Value_generator * | m_default_val_expr {nullptr} |
| The expression to be used to generate the default value. More... | |
| const char * | m_new_name {nullptr} |
| The new column name. More... | |
Private Attributes | |
| Type | m_type |
| LEX_CSTRING | m_new_masking_policy_name {NULL_CSTR} |
Class representing SET DEFAULT, DROP DEFAULT, RENAME COLUMN, SET VISIBLE and SET INVISIBLE clause in ALTER TABLE statement.
|
strong |
|
inline |
Constructor used when altering the field's default value with a literal constant or when dropping a field's default value.
|
inline |
Constructor for assigning or unassigning a column's MASKING POLICY.
|
inline |
Constructor used when setting a field's DEFAULT value to an expression.
|
inline |
Constructor used while renaming field name.
|
inline |
Constructor used while altering column visibility.
|
inline |
Type of change requested in ALTER TABLE.
|
inline |
The new masking policy name.
| Value_generator* Alter_column::m_default_val_expr {nullptr} |
The expression to be used to generate the default value.
|
private |
| const char* Alter_column::m_new_name {nullptr} |
The new column name.
|
private |
| const char* Alter_column::name |
The column name being altered.