MySQL 9.7.0
Source Code Documentation
object_policy_service.h
Go to the documentation of this file.
1/* Copyright (c) 2026, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef OBJECT_POLICY_SERVICE_H_INCLUDED
25#define OBJECT_POLICY_SERVICE_H_INCLUDED
26
30
32
33BEGIN_SERVICE_DEFINITION(column_masking_policy_management)
34
35/**
36 Create a new policy
37
38 @param [in] thd Current thread
39 @param [in] policy_name Name of the policy
40 @param [in] argument Name of the argument used as
41 placeholder for column
42 @param [in] extra_information Extra information
43 @param [out] message_buffer Buffer used to pass information
44
45 @returns Status of the operation
46 @retval 0 Success
47 @retval 1 Failure
48 */
50 (MYSQL_THD thd, my_h_string policy_name, bool replace,
51 my_h_string expression, my_h_string argument,
52 my_h_string extra_information,
53 my_h_string message_buffer));
54
55/**
56 Remove an existing policy
57
58 @param [in] thd Current thread
59 @param [in] policy_name Name of the policy
60 @param [out] message_buffer Buffer used to pass information
61
62 @returns Status of the operation
63 @retval 0 Success
64 @retval 1 Failure
65*/
67 my_h_string message_buffer));
68END_SERVICE_DEFINITION(column_masking_policy_management)
69
70BEGIN_SERVICE_DEFINITION(column_masking_policy_retrieval)
71
72/**
73 Get policy details
74
75 @param [in] thd Current thread
76 @param [out] expression Expression in UTF8MB4
77 @param [out] argument Placeholder name
78 @param [out] extra_information Extra information
79 @param [out] message_buffer Buffer used to pass information
80
81 @returns Status of the operation
82 @retval 0 Success
83 @retval 1 Failure
84*/
86 my_h_string expression, my_h_string argument,
87 my_h_string extra_information,
88 my_h_string message_buffer));
89END_SERVICE_DEFINITION(column_masking_policy_retrieval)
90#endif /* OBJECT_POLICY_SERVICE_H_INCLUDED */
#define MYSQL_THD
Definition: backup_page_tracker.h:38
bool drop(THD *thd, const Table *tp)
Remove SDI for a table.
Definition: sdi.cc:639
struct my_h_string_imp * my_h_string
The string functions as a service to the mysql_server component.
Definition: mysql_string.h:73
static bool replace
Definition: mysqlimport.cc:70
static mysql_service_status_t get(THD **thd) noexcept
Definition: mysql_current_thread_reader_all_empty.cc:31
static mysql_service_status_t create(my_h_string *) noexcept
Definition: mysql_string_all_empty.cc:43
#define END_SERVICE_DEFINITION(name)
A macro to end the last Service definition started with the BEGIN_SERVICE_DEFINITION macro.
Definition: service.h:91
#define BEGIN_SERVICE_DEFINITION(name)
Declares a new Service.
Definition: service.h:86
#define DECLARE_BOOL_METHOD(name, args)
Declares a method that returns bool as a part of the Service definition.
Definition: service.h:112