MySQL 8.0.39
Source Code Documentation
table_replication_group_configuration_version.h
Go to the documentation of this file.
1/* Copyright (c) 2021, 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 as published by
5 the Free Software Foundation; version 2 of the License.
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 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
26
27#ifndef TABLE_REPLICATION_GROUP_CONFIGURATION_VERSION_INCLUDE
28#define TABLE_REPLICATION_GROUP_CONFIGURATION_VERSION_INCLUDE
29
30namespace gr {
31namespace perfschema {
32
34 : public Abstract_Pfs_table {
35 public:
38
39 bool init() override;
40 bool deinit() override;
41
42 static unsigned long long get_row_count();
43 static int rnd_init(PSI_table_handle *handle [[maybe_unused]],
44 bool scan [[maybe_unused]]);
45 static int rnd_next(PSI_table_handle *handle);
46 static int rnd_pos(PSI_table_handle *handle);
49 unsigned int index);
50 static PSI_table_handle *open_table(PSI_pos **pos [[maybe_unused]]);
52};
53
54} // namespace perfschema
55} // namespace gr
56
57#endif /* TABLE_REPLICATION_GROUP_CONFIGURATION_VERSION_INCLUDE */
Definition: table_replication_group_configuration_version.h:34
bool deinit() override
Definition: table_replication_group_configuration_version.cc:202
static void reset_position(PSI_table_handle *handle)
Definition: table_replication_group_configuration_version.cc:91
static unsigned long long get_row_count()
Definition: table_replication_group_configuration_version.cc:58
static int rnd_pos(PSI_table_handle *handle)
Definition: table_replication_group_configuration_version.cc:80
bool init() override
Definition: table_replication_group_configuration_version.cc:206
static int rnd_init(PSI_table_handle *handle, bool scan)
Definition: table_replication_group_configuration_version.cc:62
static PSI_table_handle * open_table(PSI_pos **pos)
Definition: table_replication_group_configuration_version.cc:146
static int read_column_value(PSI_table_handle *handle, PSI_field *field, unsigned int index)
Definition: table_replication_group_configuration_version.cc:99
static int rnd_next(PSI_table_handle *handle)
Definition: table_replication_group_configuration_version.cc:67
static void close_table(PSI_table_handle *handle)
Definition: table_replication_group_configuration_version.cc:195
Definition: pfs.h:33
static int handle(int sql_errno, const char *sqlstate, const char *message, void *state)
Bridge function between the C++ API offered by this module and the C API of the parser service.
Definition: services.cc:64
struct PSI_table_handle PSI_table_handle
This is an opaque structure to denote table handle in plugin/component code.
Definition: pfs_plugin_table_service.h:97
struct PSI_pos PSI_pos
This is an opaque structure to denote cursor position in plugin/component code.
Definition: pfs_plugin_table_service.h:102
struct PSI_field PSI_field
This is an opaque structure to denote filed in plugin/component code.
Definition: pfs_plugin_table_service.h:93