MySQL 8.1.0
Source Code Documentation
tablespaces.h
Go to the documentation of this file.
1/* Copyright (c) 2014, 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__TABLESPACES_INCLUDED
24#define DD_TABLES__TABLESPACES_INCLUDED
25
26#include <string>
27
29#include "sql/dd/string_type.h"
31
32namespace dd {
33class Global_name_key;
34class Raw_record;
35
36namespace tables {
37
38///////////////////////////////////////////////////////////////////////////
39
41 public:
42 static const Tablespaces &instance();
43
52 NUMBER_OF_FIELDS // Always keep this entry at the end of the enum
53 };
54
56 INDEX_PK_ID = static_cast<uint>(Common_index::PK_ID),
57 INDEX_UK_NAME = static_cast<uint>(Common_index::UK_NAME)
58 };
59
61
63
64 Tablespace *create_entity_object(const Raw_record &) const override;
65
67 const String_type &tablespace_name);
68};
69
70///////////////////////////////////////////////////////////////////////////
71
72} // namespace tables
73} // namespace dd
74
75#endif // DD_TABLES__TABLESPACES_INCLUDED
Definition: entity_object_table_impl.h:45
Definition: object_keys.h:122
Definition: raw_record.h:45
Definition: tablespace.h:55
Definition: tablespaces.h:40
static const Tablespaces & instance()
Definition: tablespaces.cc:36
Tablespace * create_entity_object(const Raw_record &) const override
Definition: tablespaces.cc:81
Tablespaces()
Definition: tablespaces.cc:43
enum_fields
Definition: tablespaces.h:44
@ FIELD_OPTIONS
Definition: tablespaces.h:47
@ FIELD_ENGINE
Definition: tablespaces.h:50
@ FIELD_ID
Definition: tablespaces.h:45
@ FIELD_NAME
Definition: tablespaces.h:46
@ FIELD_SE_PRIVATE_DATA
Definition: tablespaces.h:48
@ FIELD_ENGINE_ATTRIBUTE
Definition: tablespaces.h:51
@ NUMBER_OF_FIELDS
Definition: tablespaces.h:52
@ FIELD_COMMENT
Definition: tablespaces.h:49
enum_indexes
Definition: tablespaces.h:55
@ INDEX_PK_ID
Definition: tablespaces.h:56
@ INDEX_UK_NAME
Definition: tablespaces.h:57
enum_foreign_keys
Definition: tablespaces.h:60
static bool update_object_key(Global_name_key *key, const String_type &tablespace_name)
Definition: tablespaces.cc:87
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