MySQL 8.4.1
Source Code Documentation
role_tables.h
Go to the documentation of this file.
1/* Copyright (c) 2000, 2024, 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 ROLE_TABLES_H
25#define ROLE_TABLES_H
26
28
29class THD;
30struct TABLE;
31
33 const Auth_id_ref &from_user,
34 const Auth_id_ref &to_user,
35 bool with_admin_option, bool delete_option);
37 const Auth_id_ref &auth_id,
38 const Auth_id_ref &role, bool delete_option);
39#endif /* ROLE_TABLES_H */
std::pair< LEX_CSTRING, LEX_CSTRING > Auth_id_ref
user, host tuple which reference either acl_cache or g_default_roles
Definition: auth_common.h:80
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
bool modify_default_roles_in_table(THD *thd, TABLE *table, const Auth_id_ref &auth_id, const Auth_id_ref &role, bool delete_option)
Definition: role_tables.cc:146
bool modify_role_edges_in_table(THD *thd, TABLE *table, const Auth_id_ref &from_user, const Auth_id_ref &to_user, bool with_admin_option, bool delete_option)
Definition: role_tables.cc:76
Definition: table.h:1406