MySQL 8.0.39
Source Code Documentation
collations.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_TABLES__COLLATIONS_INCLUDED
25#define DD_TABLES__COLLATIONS_INCLUDED
26
27#include <string>
28
30#include "sql/dd/string_type.h"
32
33class THD;
34
35namespace dd {
36class Global_name_key;
37class Raw_record;
38
39namespace tables {
40
41///////////////////////////////////////////////////////////////////////////
42
44 public:
45 static const Collations &instance();
46
47 static const CHARSET_INFO *name_collation();
48
57 NUMBER_OF_FIELDS // Always keep this entry at the end of the enum
58 };
59
64 };
65
67
68 Collations();
69
70 bool populate(THD *thd) const override;
71
72 Collation *create_entity_object(const Raw_record &) const override;
73
76};
77
78///////////////////////////////////////////////////////////////////////////
79
80} // namespace tables
81} // namespace dd
82
83#endif // DD_TABLES__COLLATIONS_INCLUDED
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
Definition: collation.h:46
Definition: entity_object_table_impl.h:46
Definition: object_keys.h:123
Definition: raw_record.h:46
Definition: collations.h:43
Collations()
Definition: collations.cc:64
bool populate(THD *thd) const override
Execute low level code for populating the table.
Definition: collations.cc:97
enum_indexes
Definition: collations.h:60
@ INDEX_UK_NAME
Definition: collations.h:62
@ INDEX_K_CHARACTER_SET_ID
Definition: collations.h:63
@ INDEX_PK_ID
Definition: collations.h:61
static const CHARSET_INFO * name_collation()
Definition: collations.cc:58
enum_fields
Definition: collations.h:49
@ FIELD_NAME
Definition: collations.h:51
@ FIELD_OPTIONS
Definition: collations.h:56
@ FIELD_PAD_ATTRIBUTE
Definition: collations.h:55
@ FIELD_CHARACTER_SET_ID
Definition: collations.h:52
@ FIELD_IS_COMPILED
Definition: collations.h:53
@ FIELD_SORT_LENGTH
Definition: collations.h:54
@ NUMBER_OF_FIELDS
Definition: collations.h:57
@ FIELD_ID
Definition: collations.h:50
Collation * create_entity_object(const Raw_record &) const override
Definition: collations.cc:179
static const Collations & instance()
Definition: collations.cc:51
enum_foreign_keys
Definition: collations.h:66
@ FK_CHARACTER_SET_ID
Definition: collations.h:66
static bool update_object_key(Global_name_key *key, const String_type &collation_name)
Definition: collations.cc:185
char * collation_name
Definition: audit_api_message_emit.cc:185
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51
required string key
Definition: replication_asynchronous_connection_failover.proto:60
Definition: m_ctype.h:385
unsigned int uint
Definition: uca9-dump.cc:75