24#ifndef SQL_MASKING_POLICY_INCLUDED
25#define SQL_MASKING_POLICY_INCLUDED
Create_field is a description a field/column that may or may not exists in a table.
Definition: create_field.h:51
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:929
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
constexpr const LEX_CSTRING NULL_CSTR
Definition: lex_string.h:48
Some integer typedefs for easier portability.
unsigned char uchar
Definition: my_inttypes.h:52
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
bool validate_masking_policy_syntax(THD *thd, LEX_CSTRING argument_name, Item *expr)
Validate structural and semantic restrictions for a masking policy expression.
Definition: sql_masking_policy.cc:415
bool validate_masking_policy_for_create_alter_table(THD *thd, uchar *buf, TABLE *table, const Create_field &field)
Validates masking policies for CREATE/ALTER TABLE.
Definition: sql_masking_policy.cc:671
Item * resolve_masking_expression(THD *thd, Item_field *item_field, const Sql_masking_policy_spec &spec)
Parse and resolve the column’s masking expression under the column’s security context.
Definition: sql_masking_policy.cc:610
bool check_masking_policy_manage_privilege(THD *thd)
Checks if the current user has the MANAGE_DATA_MASKING_POLICY privilege.
Definition: sql_masking_policy.cc:225
bool check_masking_policy_name(LEX_CSTRING name)
Check if the name is valid for a masking policy name or a masking policy argument name.
Definition: sql_masking_policy.cc:324
std::optional< Sql_masking_policy_spec > get_masking_policy_spec(THD *thd, LEX_CSTRING policy_name, std::string *reason)
Returns the masking policy with the given name if it can be found.
Definition: sql_masking_policy.cc:183
bool create_masking_policy(THD *thd, bool if_not_exists, const Sql_masking_policy_spec &spec)
Create a masking policy with the given specification.
Definition: sql_masking_policy.cc:237
bool drop_masking_policy(THD *thd, LEX_CSTRING policy_name, bool if_exists)
Drop the masking policy with the given name.
Definition: sql_masking_policy.cc:147
case opt name
Definition: sslopt-case.h:29
Definition: mysql_lex_string.h:40
Definition: sql_masking_policy.h:39
LEX_CSTRING argument_name
Definition: sql_masking_policy.h:42
LEX_CSTRING masking_expression
Definition: sql_masking_policy.h:41
LEX_CSTRING policy_name
Definition: sql_masking_policy.h:40