MySQL 26.10.0
Source Code Documentation
mrs_component_embedded_mysql_result.h
Go to the documentation of this file.
1/* Copyright (c) 2026, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is designed to work with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef MRS_COMPONENT_EMBEDDED_MYSQL_RESULT_H
25#define MRS_COMPONENT_EMBEDDED_MYSQL_RESULT_H
26
27#include <cstdint>
28#include <memory>
29
30#include "mysql.h"
34
35namespace mrs_component {
36
39unsigned long mysql_bind_data_length(const MYSQL_BIND &bind);
40
41std::unique_ptr<mysqlrouter::MySQLSession::ResultRow> clone_result_row(
43
45
47 my_h_statement stmt,
50
52
54 MYSQL_H mysql_h,
57
58} // namespace mrs_component
59
60#endif // MRS_COMPONENT_EMBEDDED_MYSQL_RESULT_H
Definition: mysql_session.h:311
std::function< void(unsigned, MYSQL_FIELD *)> FieldValidator
Definition: mysql_session.h:166
std::function< bool(const ResultRow &)> ResultRowProcessor
Definition: mysql_session.h:164
enum_field_types
Column types for MySQL Note: Keep include/mysql/components/services/bits/stored_program_bits....
Definition: field_types.h:56
This file defines the client API to MySQL and also the ABI of the dynamically linked libmysqlclient.
struct MYSQL_H_imp * MYSQL_H
Definition: mysql_command_services.h:33
struct my_h_statement_imp * my_h_statement
Definition: mysql_statement_service.h:35
Definition: mrs_component.cc:137
void configure_statement_handle(my_h_statement stmt)
Definition: mrs_component_embedded_mysql_result.cc:375
std::unique_ptr< mysqlrouter::MySQLSession::ResultRow > clone_result_row(const mysqlrouter::MySQLSession::ResultRow &row)
Definition: mrs_component_embedded_mysql_result.cc:434
unsigned long mysql_bind_data_length(const MYSQL_BIND &bind)
Definition: mrs_component_embedded_mysql_result.cc:422
StatementResultStatus process_statement_result(my_h_statement stmt, const mysqlrouter::MySQLSession::ResultRowProcessor &processor, const mysqlrouter::MySQLSession::FieldValidator &validator)
Definition: mrs_component_embedded_mysql_result.cc:449
CommandResultStatus process_command_result(MYSQL_H mysql_h, const mysqlrouter::MySQLSession::ResultRowProcessor &processor, const mysqlrouter::MySQLSession::FieldValidator &validator)
Definition: mrs_component_embedded_mysql_result.cc:491
uint64_t mysql_bind_type_to_statement_type(enum_field_types type)
Definition: mrs_component_embedded_mysql_result.cc:393
StatementResultStatus
Definition: mrs_component_embedded_mysql_result.h:44
CommandResultStatus
Definition: mrs_component_embedded_mysql_result.h:51
stdx::expected< void, error_type > bind(native_handle_type native_handle, const struct sockaddr *addr, size_t addr_len)
wrap bind() in a portable way.
Definition: socket.h:339
required string type
Definition: replication_group_member_actions.proto:34
Definition: mysql.h:670