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:221
a processor base class with helper functions.
Definition: processor.h:89
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:305
stdx::expected< Result, std::error_code > response()
Definition: classic_query_sender.cc:327
stdx::expected< Result, std::error_code > row_or_end()
Definition: classic_query_sender.cc:480
stdx::expected< Result, std::error_code > data()
Definition: classic_query_sender.cc:382
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:400
stdx::expected< Result, std::error_code > error()
Definition: classic_query_sender.cc:607
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:360
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:531
stdx::expected< Result, std::error_code > column()
Definition: classic_query_sender.cc:424
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:510
stdx::expected< Result, std::error_code > ok()
Definition: classic_query_sender.cc:569
uint64_t columns_left_
Definition: classic_query_sender.h:117
stdx::expected< Result, std::error_code > column_end()
Definition: classic_query_sender.cc:460
stdx::expected< Result, std::error_code > process() override
Definition: classic_query_sender.cc:272
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:4412
Definition: expected.h:944
static int count
Definition: myisam_ftdump.cc:43
std::bitset< 32 > value_type
Definition: classic_protocol_constants.h:73
borrowable::message::server::Error< false > Error
Definition: classic_protocol_message.h:1399
borrowable::message::server::Row< false > Row
Definition: classic_protocol_message.h:1407
borrowable::message::server::Eof< false > Eof
Definition: classic_protocol_message.h:1400
borrowable::message::server::Ok< false > Ok
Definition: classic_protocol_message.h:1398
borrowable::message::server::ColumnMeta< false > ColumnMeta
Definition: classic_protocol_message.h:1403
static Value err()
Create a Value object that represents an error condition.
Definition: json_binary.cc:910
Definition: gcs_xcom_synode.h:64