MySQL 8.0.40
Source Code Documentation
entity_object_table.h
Go to the documentation of this file.
1/* Copyright (c) 2014, 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__ENTITY_OBJECT_TABLE_INCLUDED
25#define DD__ENTITY_OBJECT_TABLE_INCLUDED
26
27#include "sql/dd/types/object_table.h" // dd::Object_table
28
29namespace dd {
30
31///////////////////////////////////////////////////////////////////////////
32
33class Entity_object;
34class Open_dictionary_tables_ctx;
35class Raw_record;
36
37///////////////////////////////////////////////////////////////////////////
38
39/**
40 This class represents DD table like mysql.schemata,
41 mysql.tables, mysql.tablespaces and more. These corresponds to
42 base DD table where the Entity_object's are persisted.
43
44 This class does not represent table like mysql.columns,
45 mysql.indexes which hold metadata child objects object of
46 mysql.tables and are not directly created/searched/dropped
47 without accessing mysql.tables or dd::Table Dictionary object.
48*/
49class Entity_object_table : virtual public Object_table {
50 public:
51 ~Entity_object_table() override = default;
52
54 const Raw_record &record) const = 0;
55
57 const Raw_record &record,
58 Entity_object **o) const = 0;
59};
60
61///////////////////////////////////////////////////////////////////////////
62
63} // namespace dd
64
65#endif // DD__ENTITY_OBJECT_TABLE_INCLUDED
This class represents DD table like mysql.schemata, mysql.tables, mysql.tablespaces and more.
Definition: entity_object_table.h:49
virtual Entity_object * create_entity_object(const Raw_record &record) const =0
~Entity_object_table() override=default
virtual bool restore_object_from_record(Open_dictionary_tables_ctx *otx, const Raw_record &record, Entity_object **o) const =0
Base class for dictionary objects which has single column integer primary key.
Definition: entity_object.h:48
This class represents all data dictionary table like mysql.tables, mysql.columns and more.
Definition: object_table.h:72
Auxiliary class for opening dictionary tables.
Definition: transaction_impl.h:76
Definition: raw_record.h:46
static int record
Definition: mysqltest.cc:188
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43