MySQL 8.4.2
Source Code Documentation
Command_delegate Class Referenceabstract

#include <mysql_command_delegates.h>

Inheritance diagram for Command_delegate:
[legend]

Public Member Functions

 Command_delegate (void *srv, SRV_CTX_H srv_ctx_h)
 
virtual ~Command_delegate ()
 
 Command_delegate (const Command_delegate &)=default
 
 Command_delegate (Command_delegate &&)=default
 
Command_delegateoperator= (const Command_delegate &)=default
 
Command_delegateoperator= (Command_delegate &&)=default
 
const st_command_service_cbscallbacks () const
 
virtual int start_result_metadata (uint32_t num_cols, uint32_t flags, const CHARSET_INFO *resultcs)=0
 
virtual int field_metadata (struct st_send_field *field, const CHARSET_INFO *charset)=0
 
virtual int end_result_metadata (uint server_status, uint warn_count)=0
 
virtual int start_row ()=0
 
virtual int end_row ()=0
 
virtual void abort_row ()=0
 
virtual ulong get_client_capabilities ()=0
 
virtual int get_null ()=0
 
virtual int get_integer (longlong value)=0
 
virtual int get_longlong (longlong value, uint32_t unsigned_flag)=0
 
virtual int get_decimal (const decimal_t *value)=0
 
virtual int get_double (double value, uint32 decimals)=0
 
virtual int get_date (const MYSQL_TIME *value)=0
 
virtual int get_time (const MYSQL_TIME *value, uint decimals)=0
 
virtual int get_datetime (const MYSQL_TIME *value, uint decimals)=0
 
virtual int get_string (const char *const value, size_t length, const CHARSET_INFO *const valuecs)=0
 
virtual void handle_ok (unsigned int server_status, unsigned int statement_warn_count, unsigned long long affected_rows, unsigned long long last_insert_id, const char *const message)=0
 
virtual void handle_error (uint sql_errno, const char *const err_msg, const char *const sqlstate)=0
 
virtual void shutdown (int flag)
 

Protected Attributes

void * m_srv
 
SRV_CTX_H m_srv_ctx_h
 
st_command_service_cbs m_callbacks
 

Static Private Member Functions

static int call_start_result_metadata (void *ctx, uint num_cols, uint flags, const CHARSET_INFO *resultcs)
 
static int call_field_metadata (void *ctx, struct st_send_field *field, const CHARSET_INFO *charset)
 
static int call_end_result_metadata (void *ctx, uint server_status, uint warn_count)
 
static int call_start_row (void *ctx)
 
static int call_end_row (void *ctx)
 
static void call_abort_row (void *ctx)
 
static ulong call_get_client_capabilities (void *ctx)
 
static int call_get_null (void *ctx)
 
static int call_get_integer (void *ctx, longlong value)
 
static int call_get_longlong (void *ctx, longlong value, unsigned int unsigned_flag)
 
static int call_get_decimal (void *ctx, const decimal_t *value)
 
static int call_get_double (void *ctx, double value, unsigned int decimals)
 
static int call_get_date (void *ctx, const MYSQL_TIME *value)
 
static int call_get_time (void *ctx, const MYSQL_TIME *value, unsigned int decimals)
 
static int call_get_datetime (void *ctx, const MYSQL_TIME *value, unsigned int decimals)
 
static int call_get_string (void *ctx, const char *const value, size_t length, const CHARSET_INFO *const valuecs)
 
static void call_handle_ok (void *ctx, uint server_status, uint statement_warn_count, ulonglong affected_rows, ulonglong last_insert_id, const char *const message)
 
static void call_handle_error (void *ctx, uint sql_errno, const char *const err_msg, const char *const sqlstate)
 
static void call_shutdown (void *ctx, int flag)
 

Constructor & Destructor Documentation

◆ Command_delegate() [1/3]

Command_delegate::Command_delegate ( void *  srv,
SRV_CTX_H  srv_ctx_h 
)

◆ ~Command_delegate()

Command_delegate::~Command_delegate ( )
virtual

◆ Command_delegate() [2/3]

Command_delegate::Command_delegate ( const Command_delegate )
default

◆ Command_delegate() [3/3]

Command_delegate::Command_delegate ( Command_delegate &&  )
default

Member Function Documentation

◆ abort_row()

virtual void Command_delegate::abort_row ( )
pure virtual

Implemented in Callback_command_delegate.

◆ call_abort_row()

static void Command_delegate::call_abort_row ( void *  ctx)
inlinestaticprivate

◆ call_end_result_metadata()

static int Command_delegate::call_end_result_metadata ( void *  ctx,
uint  server_status,
uint  warn_count 
)
inlinestaticprivate

◆ call_end_row()

static int Command_delegate::call_end_row ( void *  ctx)
inlinestaticprivate

◆ call_field_metadata()

static int Command_delegate::call_field_metadata ( void *  ctx,
struct st_send_field field,
const CHARSET_INFO charset 
)
inlinestaticprivate

◆ call_get_client_capabilities()

static ulong Command_delegate::call_get_client_capabilities ( void *  ctx)
inlinestaticprivate

◆ call_get_date()

static int Command_delegate::call_get_date ( void *  ctx,
const MYSQL_TIME value 
)
inlinestaticprivate

◆ call_get_datetime()

static int Command_delegate::call_get_datetime ( void *  ctx,
const MYSQL_TIME value,
unsigned int  decimals 
)
inlinestaticprivate

◆ call_get_decimal()

static int Command_delegate::call_get_decimal ( void *  ctx,
const decimal_t value 
)
inlinestaticprivate

◆ call_get_double()

static int Command_delegate::call_get_double ( void *  ctx,
double  value,
unsigned int  decimals 
)
inlinestaticprivate

◆ call_get_integer()

static int Command_delegate::call_get_integer ( void *  ctx,
longlong  value 
)
inlinestaticprivate

◆ call_get_longlong()

static int Command_delegate::call_get_longlong ( void *  ctx,
longlong  value,
unsigned int  unsigned_flag 
)
inlinestaticprivate

◆ call_get_null()

static int Command_delegate::call_get_null ( void *  ctx)
inlinestaticprivate

◆ call_get_string()

static int Command_delegate::call_get_string ( void *  ctx,
const char *const  value,
size_t  length,
const CHARSET_INFO *const  valuecs 
)
inlinestaticprivate

◆ call_get_time()

static int Command_delegate::call_get_time ( void *  ctx,
const MYSQL_TIME value,
unsigned int  decimals 
)
inlinestaticprivate

◆ call_handle_error()

static void Command_delegate::call_handle_error ( void *  ctx,
uint  sql_errno,
const char *const  err_msg,
const char *const  sqlstate 
)
inlinestaticprivate

◆ call_handle_ok()

static void Command_delegate::call_handle_ok ( void *  ctx,
uint  server_status,
uint  statement_warn_count,
ulonglong  affected_rows,
ulonglong  last_insert_id,
const char *const  message 
)
inlinestaticprivate

◆ call_shutdown()

static void Command_delegate::call_shutdown ( void *  ctx,
int  flag 
)
inlinestaticprivate

◆ call_start_result_metadata()

static int Command_delegate::call_start_result_metadata ( void *  ctx,
uint  num_cols,
uint  flags,
const CHARSET_INFO resultcs 
)
inlinestaticprivate

◆ call_start_row()

static int Command_delegate::call_start_row ( void *  ctx)
inlinestaticprivate

◆ callbacks()

const st_command_service_cbs * Command_delegate::callbacks ( ) const
inline

◆ end_result_metadata()

virtual int Command_delegate::end_result_metadata ( uint  server_status,
uint  warn_count 
)
pure virtual

Implemented in Callback_command_delegate.

◆ end_row()

virtual int Command_delegate::end_row ( )
pure virtual

Implemented in Callback_command_delegate.

◆ field_metadata()

virtual int Command_delegate::field_metadata ( struct st_send_field field,
const CHARSET_INFO charset 
)
pure virtual

Implemented in Callback_command_delegate.

◆ get_client_capabilities()

virtual ulong Command_delegate::get_client_capabilities ( )
pure virtual

Implemented in Callback_command_delegate.

◆ get_date()

virtual int Command_delegate::get_date ( const MYSQL_TIME value)
pure virtual

Implemented in Callback_command_delegate.

◆ get_datetime()

virtual int Command_delegate::get_datetime ( const MYSQL_TIME value,
uint  decimals 
)
pure virtual

◆ get_decimal()

virtual int Command_delegate::get_decimal ( const decimal_t value)
pure virtual

Implemented in Callback_command_delegate.

◆ get_double()

virtual int Command_delegate::get_double ( double  value,
uint32  decimals 
)
pure virtual

◆ get_integer()

virtual int Command_delegate::get_integer ( longlong  value)
pure virtual

Implemented in Callback_command_delegate.

◆ get_longlong()

virtual int Command_delegate::get_longlong ( longlong  value,
uint32_t  unsigned_flag 
)
pure virtual

◆ get_null()

virtual int Command_delegate::get_null ( )
pure virtual

Implemented in Callback_command_delegate.

◆ get_string()

virtual int Command_delegate::get_string ( const char *const  value,
size_t  length,
const CHARSET_INFO *const  valuecs 
)
pure virtual

Implemented in Callback_command_delegate.

◆ get_time()

virtual int Command_delegate::get_time ( const MYSQL_TIME value,
uint  decimals 
)
pure virtual

◆ handle_error()

virtual void Command_delegate::handle_error ( uint  sql_errno,
const char *const  err_msg,
const char *const  sqlstate 
)
pure virtual

Implemented in Callback_command_delegate.

◆ handle_ok()

virtual void Command_delegate::handle_ok ( unsigned int  server_status,
unsigned int  statement_warn_count,
unsigned long long  affected_rows,
unsigned long long  last_insert_id,
const char *const  message 
)
pure virtual

Implemented in Callback_command_delegate.

◆ operator=() [1/2]

Command_delegate & Command_delegate::operator= ( Command_delegate &&  )
default

◆ operator=() [2/2]

Command_delegate & Command_delegate::operator= ( const Command_delegate )
default

◆ shutdown()

virtual void Command_delegate::shutdown ( int  flag)
inlinevirtual

◆ start_result_metadata()

virtual int Command_delegate::start_result_metadata ( uint32_t  num_cols,
uint32_t  flags,
const CHARSET_INFO resultcs 
)
pure virtual

Implemented in Callback_command_delegate.

◆ start_row()

virtual int Command_delegate::start_row ( )
pure virtual

Implemented in Callback_command_delegate.

Member Data Documentation

◆ m_callbacks

st_command_service_cbs Command_delegate::m_callbacks
protected

◆ m_srv

void* Command_delegate::m_srv
protected

◆ m_srv_ctx_h

SRV_CTX_H Command_delegate::m_srv_ctx_h
protected

The documentation for this class was generated from the following files: