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