MySQL 8.0.39
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
35namespace dd {
36
37class Raw_record;
38
39namespace tables {
41 public:
43
44 static const Resource_groups &instance();
45
46 static const CHARSET_INFO *name_collation();
47
56 NUMBER_OF_FIELDS // Always keep this entry at the end of the enum
57 };
58
62 };
63
65
66 public:
68 return new (std::nothrow) Resource_group_impl();
69 }
70
72 const String_type &resource_group_name);
73};
74} // namespace tables
75} // namespace dd
76
77#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:40
enum_indexes
Definition: resource_groups.h:59
@ INDEX_UK_RESOURCE_GROUP_NAME
Definition: resource_groups.h:61
@ INDEX_PK_ID
Definition: resource_groups.h:60
static const CHARSET_INFO * name_collation()
Definition: resource_groups.cc:63
static const Resource_groups & instance()
Definition: resource_groups.cc:58
enum_fields
Definition: resource_groups.h:48
@ FIELD_RESOURCE_GROUP_ENABLED
Definition: resource_groups.h:52
@ FIELD_OPTIONS
Definition: resource_groups.h:55
@ NUMBER_OF_FIELDS
Definition: resource_groups.h:56
@ FIELD_RESOURCE_GROUP_NAME
Definition: resource_groups.h:50
@ FIELD_RESOURCE_GROUP_TYPE
Definition: resource_groups.h:51
@ FIELD_THREAD_PRIORITY
Definition: resource_groups.h:54
@ FIELD_ID
Definition: resource_groups.h:49
@ FIELD_CPU_ID_MASK
Definition: resource_groups.h:53
enum_foreign_keys
Definition: resource_groups.h:64
Resource_group * create_entity_object(const Raw_record &) const override
Definition: resource_groups.h:67
static bool update_object_key(Global_name_key *key, const String_type &resource_group_name)
Definition: resource_groups.cc:67
Resource_groups()
Definition: resource_groups.cc:33
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:385
unsigned int uint
Definition: uca9-dump.cc:75