MySQL 8.0.39
Source Code Documentation
raw_record_set.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__RAW_RECORD_SET_INCLUDED
25#define DD__RAW_RECORD_SET_INCLUDED
26
27#include <stddef.h>
28
29#include "sql/dd/impl/raw/raw_record.h" // dd::Raw_record
30
31struct TABLE;
32
33namespace dd {
34
35///////////////////////////////////////////////////////////////////////////
36
37struct Raw_key;
38
39///////////////////////////////////////////////////////////////////////////
40
41class Raw_record_set : private Raw_record {
42 public:
44
46
47 bool next(Raw_record *&r);
48
49 private:
50 // Note: The 'key' supplied will be freed by Raw_record_set
53
54 bool open();
55
56 friend class Raw_table;
57
58 private:
59 // Raw_record_set owns m_key.
61
63};
64
65///////////////////////////////////////////////////////////////////////////
66
67} // namespace dd
68
69#endif // DD__RAW_RECORD_SET_INCLUDED
Definition: raw_record_set.h:41
Raw_record_set(TABLE *table, Raw_key *key)
Definition: raw_record_set.h:51
~Raw_record_set()
Definition: raw_record_set.cc:139
Raw_record * m_current_record
Definition: raw_record_set.h:62
bool next(Raw_record *&r)
Move to next record in DD table that matches the supplied key.
Definition: raw_record_set.cc:100
bool open()
Initializes the table scan operation.
Definition: raw_record_set.cc:49
Raw_record * current_record()
Definition: raw_record_set.h:45
Raw_key * m_key
Definition: raw_record_set.h:60
Definition: raw_record.h:46
Definition: raw_table.h:44
Fido Client Authentication nullptr
Definition: fido_client_plugin.cc:222
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
const mysql_service_registry_t * r
Definition: pfs_example_plugin_employee.cc:86
required string key
Definition: replication_asynchronous_connection_failover.proto:60
Definition: table.h:1399
Definition: raw_key.h:34