MySQL 8.4.2
Source Code Documentation
resource_groups.h
Go to the documentation of this file.
1/* Copyright (c) 2017, 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 DD_TABLES__RESOURCE_GROUPS_INCLUDED
25#define DD_TABLES__RESOURCE_GROUPS_INCLUDED
26
27#include <new>
28#include <string>
29
31#include "sql/dd/impl/types/entity_object_table_impl.h" // dd::Object_table_i...
34
35struct CHARSET_INFO;
36
37namespace dd {
38
39class Raw_record;
40
41namespace tables {
43 public:
45
46 static const Resource_groups &instance();
47
48 static const CHARSET_INFO *name_collation();
49
58 NUMBER_OF_FIELDS // Always keep this entry at the end of the enum
59 };
60
62 INDEX_PK_ID = static_cast<uint>(Common_index::PK_ID),
64 };
65
67
68 public:
70 return new (std::nothrow) Resource_group_impl();
71 }
72
74 const String_type &resource_group_name);
75};
76} // namespace tables
77} // namespace dd
78
79#endif // DD_TABLES__RESOURCE_GROUPS_INCLUDED
Definition: entity_object_table_impl.h:46
Definition: object_keys.h:123
Definition: raw_record.h:46
Definition: resource_group_impl.h:45
Definition: resource_group.h:49
Definition: resource_groups.h:42
enum_indexes
Definition: resource_groups.h:61
@ INDEX_UK_RESOURCE_GROUP_NAME
Definition: resource_groups.h:63
@ INDEX_PK_ID
Definition: resource_groups.h:62
static const CHARSET_INFO * name_collation()
Definition: resource_groups.cc:65
static const Resource_groups & instance()
Definition: resource_groups.cc:60
enum_fields
Definition: resource_groups.h:50
@ FIELD_RESOURCE_GROUP_ENABLED
Definition: resource_groups.h:54
@ FIELD_OPTIONS
Definition: resource_groups.h:57
@ NUMBER_OF_FIELDS
Definition: resource_groups.h:58
@ FIELD_RESOURCE_GROUP_NAME
Definition: resource_groups.h:52
@ FIELD_RESOURCE_GROUP_TYPE
Definition: resource_groups.h:53
@ FIELD_THREAD_PRIORITY
Definition: resource_groups.h:56
@ FIELD_ID
Definition: resource_groups.h:51
@ FIELD_CPU_ID_MASK
Definition: resource_groups.h:55
enum_foreign_keys
Definition: resource_groups.h:66
Resource_group * create_entity_object(const Raw_record &) const override
Definition: resource_groups.h:69
static bool update_object_key(Global_name_key *key, const String_type &resource_group_name)
Definition: resource_groups.cc:69
Resource_groups()
Definition: resource_groups.cc:35
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51
required string key
Definition: replication_asynchronous_connection_failover.proto:60
Definition: m_ctype.h:423