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