MySQL 8.2.0
Source Code Documentation
resource_groups.h
Go to the documentation of this file.
1/* Copyright (c) 2017, 2023, 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 also distributed 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 included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef DD_TABLES__RESOURCE_GROUPS_INCLUDED
24#define DD_TABLES__RESOURCE_GROUPS_INCLUDED
25
26#include <new>
27#include <string>
28
30#include "sql/dd/impl/types/entity_object_table_impl.h" // dd::Object_table_i...
33
34struct CHARSET_INFO;
35
36namespace dd {
37
38class Raw_record;
39
40namespace tables {
42 public:
44
45 static const Resource_groups &instance();
46
47 static const CHARSET_INFO *name_collation();
48
57 NUMBER_OF_FIELDS // Always keep this entry at the end of the enum
58 };
59
61 INDEX_PK_ID = static_cast<uint>(Common_index::PK_ID),
63 };
64
66
67 public:
69 return new (std::nothrow) Resource_group_impl();
70 }
71
73 const String_type &resource_group_name);
74};
75} // namespace tables
76} // namespace dd
77
78#endif // DD_TABLES__RESOURCE_GROUPS_INCLUDED
Definition: entity_object_table_impl.h:45
Definition: object_keys.h:122
Definition: raw_record.h:45
Definition: resource_group_impl.h:44
Definition: resource_group.h:48
Definition: resource_groups.h:41
enum_indexes
Definition: resource_groups.h:60
@ INDEX_UK_RESOURCE_GROUP_NAME
Definition: resource_groups.h:62
@ INDEX_PK_ID
Definition: resource_groups.h:61
static const CHARSET_INFO * name_collation()
Definition: resource_groups.cc:64
static const Resource_groups & instance()
Definition: resource_groups.cc:59
enum_fields
Definition: resource_groups.h:49
@ FIELD_RESOURCE_GROUP_ENABLED
Definition: resource_groups.h:53
@ FIELD_OPTIONS
Definition: resource_groups.h:56
@ NUMBER_OF_FIELDS
Definition: resource_groups.h:57
@ FIELD_RESOURCE_GROUP_NAME
Definition: resource_groups.h:51
@ FIELD_RESOURCE_GROUP_TYPE
Definition: resource_groups.h:52
@ FIELD_THREAD_PRIORITY
Definition: resource_groups.h:55
@ FIELD_ID
Definition: resource_groups.h:50
@ FIELD_CPU_ID_MASK
Definition: resource_groups.h:54
enum_foreign_keys
Definition: resource_groups.h:65
Resource_group * create_entity_object(const Raw_record &) const override
Definition: resource_groups.h:68
static bool update_object_key(Global_name_key *key, const String_type &resource_group_name)
Definition: resource_groups.cc:68
Resource_groups()
Definition: resource_groups.cc:34
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:50
required string key
Definition: replication_asynchronous_connection_failover.proto:59
Definition: m_ctype.h:422