26#ifndef ROUTING_CLASSIC_QUERY_SENDER_INCLUDED
27#define ROUTING_CLASSIC_QUERY_SENDER_INCLUDED
29#include <system_error>
36 using Processor::Processor;
66 std::unique_ptr<Handler>
handler)
Definition: classic_connection_base.h:56
a processor base class with helper functions.
Definition: processor.h:91
Definition: classic_query_sender.h:38
virtual ~Handler()=default
virtual void on_column_count(uint64_t count)
Definition: classic_query_sender.h:42
virtual void on_ok(const classic_protocol::message::server::Ok &ok)
Definition: classic_query_sender.h:54
virtual void on_error(const classic_protocol::message::server::Error &err)
Definition: classic_query_sender.h:57
virtual void on_row(const classic_protocol::message::server::Row &row)
Definition: classic_query_sender.h:48
virtual void on_column(const classic_protocol::message::server::ColumnMeta &column)
Definition: classic_query_sender.h:44
virtual void on_row_end(const classic_protocol::message::server::Eof &eof)
Definition: classic_query_sender.h:51
Definition: classic_query_sender.h:34
stdx::expected< Result, std::error_code > command()
Definition: classic_query_sender.cc:297
stdx::expected< Result, std::error_code > response()
Definition: classic_query_sender.cc:317
stdx::expected< Result, std::error_code > row_or_end()
Definition: classic_query_sender.cc:461
stdx::expected< Result, std::error_code > data()
Definition: classic_query_sender.cc:368
void stage(Stage stage)
Definition: classic_query_sender.h:91
stdx::expected< void, std::error_code > track_session_changes(net::const_buffer session_trackers, classic_protocol::capabilities::value_type caps)
Stage stage_
Definition: classic_query_sender.h:114
Stage stage() const
Definition: classic_query_sender.h:92
stdx::expected< Result, std::error_code > column_count()
Definition: classic_query_sender.cc:384
stdx::expected< Result, std::error_code > error()
Definition: classic_query_sender.cc:592
std::string stmt_
Definition: classic_query_sender.h:116
Stage
Definition: classic_query_sender.h:69
stdx::expected< Result, std::error_code > load_data()
Definition: classic_query_sender.cc:348
QuerySender(MysqlRoutingClassicConnectionBase *conn, std::string stmt)
Definition: classic_query_sender.h:62
stdx::expected< Result, std::error_code > row_end()
Definition: classic_query_sender.cc:508
stdx::expected< Result, std::error_code > column()
Definition: classic_query_sender.cc:408
QuerySender(MysqlRoutingClassicConnectionBase *conn, std::string stmt, std::unique_ptr< Handler > handler)
Definition: classic_query_sender.h:65
stdx::expected< Result, std::error_code > row()
Definition: classic_query_sender.cc:489
stdx::expected< Result, std::error_code > ok()
Definition: classic_query_sender.cc:548
uint64_t columns_left_
Definition: classic_query_sender.h:117
stdx::expected< Result, std::error_code > column_end()
Definition: classic_query_sender.cc:443
stdx::expected< Result, std::error_code > process() override
Definition: classic_query_sender.cc:264
std::unique_ptr< Handler > handler_
Definition: classic_query_sender.h:119
The handler class is the interface for dynamically loadable storage engines.
Definition: handler.h:4583
Definition: expected.h:286
static int count
Definition: myisam_ftdump.cc:45
std::bitset< 32 > value_type
Definition: classic_protocol_constants.h:73
borrowable::message::server::Error< false > Error
Definition: classic_protocol_message.h:1411
borrowable::message::server::Row< false > Row
Definition: classic_protocol_message.h:1419
borrowable::message::server::Eof< false > Eof
Definition: classic_protocol_message.h:1412
borrowable::message::server::Ok< false > Ok
Definition: classic_protocol_message.h:1410
borrowable::message::server::ColumnMeta< false > ColumnMeta
Definition: classic_protocol_message.h:1415
static Value err()
Create a Value object that represents an error condition.
Definition: json_binary.cc:908
Definition: gcs_xcom_synode.h:64