MySQL 8.3.0
Source Code Documentation
spatial_reference_systems.h
Go to the documentation of this file.
1/* Copyright (c) 2016, 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__SPATIAL_REFERENCE_SYSTEMS_INCLUDED
24#define DD_TABLES__SPATIAL_REFERENCE_SYSTEMS_INCLUDED
25
26#include <string>
27
29#include "sql/dd/object_id.h"
30#include "sql/dd/string_type.h"
32
33struct CHARSET_INFO;
34
35namespace dd {
36
37class Item_name_key;
38class Object_key;
39class Raw_record;
40
41namespace tables {
42
43///////////////////////////////////////////////////////////////////////////
44
46 public:
47 static const Spatial_reference_systems &instance();
48
49 static const CHARSET_INFO *name_collation();
50
62 NUMBER_OF_FIELDS // Always keep this entry at the end of the enum
63 };
64
66 INDEX_PK_ID = static_cast<uint>(Common_index::PK_ID),
69 };
70
72
74
76 const Raw_record &) const override;
77
78 static bool update_object_key(Item_name_key *key, Object_id catalog_id,
79 const String_type &name);
80
82};
83
84///////////////////////////////////////////////////////////////////////////
85
86} // namespace tables
87} // namespace dd
88
89#endif // DD_TABLES__SPATIAL_REFERENCE_SYSTEMS_INCLUDED
Definition: entity_object_table_impl.h:45
const String_type & name() const override
Get the table name used by the target definition for the dictionary table.
Definition: entity_object_table_impl.h:55
Definition: object_keys.h:165
Definition: object_key.h:37
Definition: raw_record.h:45
Definition: spatial_reference_system.h:52
Definition: spatial_reference_systems.h:45
static Object_key * create_key_by_catalog_id(Object_id catalog_id)
Definition: spatial_reference_systems.cc:123
enum_foreign_keys
Definition: spatial_reference_systems.h:71
@ FK_CATALOG_ID
Definition: spatial_reference_systems.h:71
Spatial_reference_systems()
Definition: spatial_reference_systems.cc:52
static const CHARSET_INFO * name_collation()
Definition: spatial_reference_systems.cc:46
enum_fields
Definition: spatial_reference_systems.h:51
@ FIELD_ID
Definition: spatial_reference_systems.h:52
@ FIELD_ORGANIZATION_COORDSYS_ID
Definition: spatial_reference_systems.h:58
@ FIELD_ORGANIZATION
Definition: spatial_reference_systems.h:57
@ FIELD_DESCRIPTION
Definition: spatial_reference_systems.h:60
@ FIELD_OPTIONS
Definition: spatial_reference_systems.h:61
@ FIELD_CATALOG_ID
Definition: spatial_reference_systems.h:53
@ NUMBER_OF_FIELDS
Definition: spatial_reference_systems.h:62
@ FIELD_NAME
Definition: spatial_reference_systems.h:54
@ FIELD_LAST_ALTERED
Definition: spatial_reference_systems.h:55
@ FIELD_CREATED
Definition: spatial_reference_systems.h:56
@ FIELD_DEFINITION
Definition: spatial_reference_systems.h:59
enum_indexes
Definition: spatial_reference_systems.h:65
@ INDEX_PK_ID
Definition: spatial_reference_systems.h:66
@ INDEX_UK_CATALOG_ID_NAME
Definition: spatial_reference_systems.h:67
@ INDEX_UK_CATALOG_ID_ORG_ID
Definition: spatial_reference_systems.h:68
static bool update_object_key(Item_name_key *key, Object_id catalog_id, const String_type &name)
Definition: spatial_reference_systems.cc:113
static const Spatial_reference_systems & instance()
Definition: spatial_reference_systems.cc:38
Spatial_reference_system * create_entity_object(const Raw_record &) const override
Definition: spatial_reference_systems.cc:106
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
unsigned long long Object_id
Definition: object_id.h:30
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