![]() |
MySQL 9.3.0
Source Code Documentation
|
codec for client's Execute Statement command. More...
#include <classic_protocol_codec_message.h>
Public Types | |
using | value_type = borrowable::message::client::StmtExecute< Borrowed > |
using | __base = impl::EncodeBase< Codec< value_type > > |
Public Member Functions | |
constexpr | Codec (value_type val, capabilities::value_type caps) |
![]() | |
constexpr | EncodeBase (capabilities::value_type caps) |
constexpr size_t | size () const noexcept |
stdx::expected< size_t, std::error_code > | encode (net::mutable_buffer buffer) const |
constexpr capabilities::value_type | caps () const noexcept |
Static Public Member Functions | |
constexpr static uint8_t | cmd_byte () noexcept |
static constexpr capabilities::value_type | depends_on_capabilities () noexcept |
capabilities the codec depends on. More... | |
template<class Func > | |
static stdx::expected< std::pair< size_t, value_type >, std::error_code > | decode (const net::const_buffer &buffer, capabilities::value_type caps, Func &&metadata_lookup) |
decode a buffer into a message::client::StmtExecute. More... | |
Public Attributes | |
friend | __base |
Private Member Functions | |
template<class Accumulator > | |
auto | accumulate_fields (Accumulator &&accu) const |
Private Attributes | |
const value_type | v_ |
codec for client's Execute Statement command.
using classic_protocol::Codec< borrowable::message::client::StmtExecute< Borrowed > >::__base = impl::EncodeBase<Codec<value_type> > |
using classic_protocol::Codec< borrowable::message::client::StmtExecute< Borrowed > >::value_type = borrowable::message::client::StmtExecute<Borrowed> |
|
inlineconstexpr |
|
inlineprivate |
|
inlinestaticconstexprnoexcept |
|
inlinestatic |
decode a buffer into a message::client::StmtExecute.
buffer | a buffer |
caps | protocol capabilities |
metadata_lookup | callable that expects a 'uint32_t statement_id' that returns a result that's convertible to 'stdx::expected<std::vector<ParamDef>, std::error_code>' representing the parameter-definitions of the prepared statement |
decoding a StmtExecute message requires the parameter-definitions of the prepared statement. The metadata_lookup function may be called to get the parameter-definitions for the statement-id.
The function may return a parameter-definitions directly
... or a stdx::expected<std::vector<ParamDef>, std::error_code> if it wants to signal that a statement-id wasn't found
|
inlinestaticconstexprnoexcept |
capabilities the codec depends on.
friend classic_protocol::Codec< borrowable::message::client::StmtExecute< Borrowed > >::__base |
|
private |