MySQL 9.1.0
Source Code Documentation
parameters.h
Go to the documentation of this file.
1/* Copyright (c) 2016, 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__PARAMETERS_INCLUDED
25#define DD_TABLES__PARAMETERS_INCLUDED
26
27#include "sql/dd/impl/types/object_table_impl.h" // dd::Object_table_impl
28#include "sql/dd/object_id.h" // dd::Object_id
29#include "sql/dd/string_type.h"
30
31struct CHARSET_INFO;
32
33namespace dd {
34class Object_key;
35
36namespace tables {
37
38///////////////////////////////////////////////////////////////////////////
39
41 public:
42 static const Parameters &instance();
43
44 static const CHARSET_INFO *name_collation();
45
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
73 Parameters();
74
76
77 static Object_key *create_primary_key(Object_id routine_id,
78 int ordinal_position);
79};
80
81///////////////////////////////////////////////////////////////////////////
82
83} // namespace tables
84} // namespace dd
85
86#endif // DD_TABLES__PARAMETERS_INCLUDED
Definition: object_key.h:38
Definition: object_table_impl.h:36
Definition: parameters.h:40
enum_indexes
Definition: parameters.h:65
@ INDEX_PK_ID
Definition: parameters.h:66
@ INDEX_UK_ROUTINE_ID_ORDINAL_POSITION
Definition: parameters.h:67
@ INDEX_K_COLLATION_ID
Definition: parameters.h:68
static const CHARSET_INFO * name_collation()
Definition: parameters.cc:44
static const Parameters & instance()
Definition: parameters.cc:37
static Object_key * create_key_by_routine_id(Object_id routine_id)
Definition: parameters.cc:119
enum_foreign_keys
Definition: parameters.h:71
@ FK_COLLATION_ID
Definition: parameters.h:71
@ FK_ROUTINE_ID
Definition: parameters.h:71
Parameters()
Definition: parameters.cc:50
enum_fields
Definition: parameters.h:46
@ FIELD_CHAR_LENGTH
Definition: parameters.h:56
@ FIELD_IS_UNSIGNED
Definition: parameters.h:55
@ FIELD_DATA_TYPE_UTF8
Definition: parameters.h:53
@ FIELD_NUMERIC_SCALE
Definition: parameters.h:58
@ FIELD_NUMERIC_PRECISION
Definition: parameters.h:57
@ FIELD_NAME
Definition: parameters.h:51
@ FIELD_ORDINAL_POSITION
Definition: parameters.h:49
@ FIELD_COLLATION_ID
Definition: parameters.h:60
@ FIELD_ID
Definition: parameters.h:47
@ NUMBER_OF_FIELDS
Definition: parameters.h:62
@ FIELD_MODE
Definition: parameters.h:50
@ FIELD_ROUTINE_ID
Definition: parameters.h:48
@ FIELD_OPTIONS
Definition: parameters.h:61
@ FIELD_DATA_TYPE
Definition: parameters.h:52
@ FIELD_DATETIME_PRECISION
Definition: parameters.h:59
@ FIELD_IS_ZEROFILL
Definition: parameters.h:54
static Object_key * create_primary_key(Object_id routine_id, int ordinal_position)
Definition: parameters.cc:127
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
unsigned long long Object_id
Definition: object_id.h:31
Definition: m_ctype.h:421