MySQL 8.3.0
Source Code Documentation
client_query_attributes Class Reference

#include <client_query_attributes.h>

Public Member Functions

 client_query_attributes ()=default
 
 ~client_query_attributes ()
 
bool push_param (const char *name, const char *value)
 
bool push_param (const char *name, size_t name_length, const char *value, size_t value_length)
 
int set_params (MYSQL *mysql)
 
int set_params_stmt (MYSQL_STMT *stmt)
 
void clear (MYSQL *mysql=nullptr)
 

Private Attributes

const char * names [max_count]
 
MYSQL_BIND values [max_count]
 
unsigned count {0}
 

Static Private Attributes

static constexpr int max_count = 32
 

Constructor & Destructor Documentation

◆ client_query_attributes()

client_query_attributes::client_query_attributes ( )
default

◆ ~client_query_attributes()

client_query_attributes::~client_query_attributes ( )
inline

Member Function Documentation

◆ clear()

void client_query_attributes::clear ( MYSQL mysql = nullptr)

◆ push_param() [1/2]

bool client_query_attributes::push_param ( const char *  name,
const char *  value 
)

◆ push_param() [2/2]

bool client_query_attributes::push_param ( const char *  name,
size_t  name_length,
const char *  value,
size_t  value_length 
)

◆ set_params()

int client_query_attributes::set_params ( MYSQL mysql)

◆ set_params_stmt()

int client_query_attributes::set_params_stmt ( MYSQL_STMT stmt)

Member Data Documentation

◆ count

unsigned client_query_attributes::count {0}
private

◆ max_count

constexpr int client_query_attributes::max_count = 32
staticconstexprprivate

◆ names

const char* client_query_attributes::names[max_count]
private

◆ values

MYSQL_BIND client_query_attributes::values[max_count]
private

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