MySQL 8.0.40
Source Code Documentation
table_tls_channel_status.h
Go to the documentation of this file.
1/* Copyright (c) 2020, 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 TABLE_TLS_CHANNEL_H
25#define TABLE_TLS_CHANNEL_H
26
27/**
28 @file storage/perfschema/table_tls_channel_status.h
29 Table TLS_CHANNEL_STATUS (declarations).
30*/
31
32#include <string>
33#include <vector>
34
35#include <sys/types.h>
36
37#include "my_base.h"
38#include "my_inttypes.h"
41
42/**
43 @addtogroup performance_schema_tables
44 @{
45*/
46
47/** A row of PERFORMANCE_SCHEMA.TLS_CHANNEL_STATUS table .*/
49 /** Interface name. In UTF8MB4 */
50 std::string m_interface;
51 /** Property name. In UTF8MB4 */
52 std::string m_property_name;
53 /** Property value. In UTF8MB4 */
54 std::string m_property_value;
55};
56
57/** Table PERFORMANCE_SCHEMA.TLS_CHANNEL_STATUS */
59 public:
60 using TLS_channel_status_container = std::vector<row_tls_channel_status>;
61 /** Table share */
64 static int delete_all_rows();
65 static ha_rows get_row_count();
66
67 void reset_position() override;
68 int rnd_next() override;
69 int rnd_pos(const void *pos) override;
70
71 ~table_tls_channel_status() override = default;
72
73 protected:
74 int read_row_values(TABLE *table, unsigned char *buf, Field **fields,
75 bool read_all) override;
77
78 private:
79 void materialize();
80 /* Safe copy of TLS properties */
82
83 /** Table share lock */
85 /** Table definition */
87
88 /** Current row. */
90 /** Current position. */
92 /** Next position. */
94};
95
96/** @} */
97
98#endif // !TABLE_TLS_CHANNEL_H
Definition: field.h:575
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.TLS_CHANNEL_STATUS.
Definition: table_tls_channel_status.h:58
~table_tls_channel_status() override=default
row_tls_channel_status * m_row
Current row.
Definition: table_tls_channel_status.h:89
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_tls_channel_status.cc:139
static int delete_all_rows()
void materialize()
Definition: table_tls_channel_status.cc:83
PFS_simple_index m_next_pos
Next position.
Definition: table_tls_channel_status.h:93
std::vector< row_tls_channel_status > TLS_channel_status_container
Definition: table_tls_channel_status.h:60
PFS_simple_index m_pos
Current position.
Definition: table_tls_channel_status.h:91
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_tls_channel_status.cc:144
static THR_LOCK m_table_lock
Table share lock.
Definition: table_tls_channel_status.h:84
static PFS_engine_table_share m_share
Table share.
Definition: table_tls_channel_status.h:62
TLS_channel_status_container m_row_tls_channel_status
Definition: table_tls_channel_status.h:81
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_tls_channel_status.cc:151
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_tls_channel_status.cc:162
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_tls_channel_status.cc:70
static Plugin_table m_table_def
Table definition.
Definition: table_tls_channel_status.h:86
table_tls_channel_status()
Definition: table_tls_channel_status.cc:74
static ha_rows get_row_count()
Definition: table_tls_channel_status.cc:134
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1140
Some integer typedefs for easier portability.
Definition: buf0block_hint.cc:30
Performance schema tables (declarations).
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:567
Definition: table.h:1399
Definition: thr_lock.h:139
A row of PERFORMANCE_SCHEMA.TLS_CHANNEL_STATUS table .
Definition: table_tls_channel_status.h:48
std::string m_interface
Interface name.
Definition: table_tls_channel_status.h:50
std::string m_property_value
Property value.
Definition: table_tls_channel_status.h:54
std::string m_property_name
Property name.
Definition: table_tls_channel_status.h:52
Helpers to implement a performance schema table.