MySQL 9.1.0
Source Code Documentation
|
#include <sql_resultset.h>
Public Member Functions | |
Sql_resultset () | |
~Sql_resultset () | |
void | new_row () |
void | new_field (Field_value *val) |
void | clear () |
resultset class More... | |
bool | next () |
void | absolute (int row) |
void | first () |
void | last () |
void | increment_rows () |
void | set_rows (uint rows) |
Set Methods. More... | |
void | set_cols (uint cols) |
void | set_charset (const CHARSET_INFO *result_cs) |
set resultset charset info More... | |
void | set_server_status (uint server_status) |
set server status. More... | |
void | set_warn_count (uint warn_count) |
set count of warning issued during command execution More... | |
void | set_affected_rows (ulonglong affected_rows) |
set rows affected due to last command execution More... | |
void | set_last_insert_id (ulonglong last_insert_id) |
set value of the AUTOINCREMENT column for the last INSERT More... | |
void | set_message (std::string msg) |
set client message More... | |
void | set_sql_errno (uint sql_errno) |
set sql error number saved during error in last command execution More... | |
void | set_err_msg (std::string msg) |
set sql error message saved during error in last command execution More... | |
void | set_sqlstate (std::string state) |
set sql error state saved during error in last command execution More... | |
void | set_killed () |
uint | get_rows () |
Get Methods. More... | |
uint | get_cols () |
const CHARSET_INFO * | get_charset () |
get resultset charset info More... | |
uint | get_server_status () |
get server status. More... | |
uint | get_warn_count () |
get count of warning issued during command execution More... | |
ulonglong | get_affected_rows () |
return rows affected dure to last command execution More... | |
ulonglong | get_last_insert_id () |
get value of the AUTOINCREMENT column for the last INSERT More... | |
std::string | get_message () |
get client message More... | |
uint | sql_errno () |
Getting error info. More... | |
std::string | err_msg () |
get sql error message saved during error in last command execution More... | |
std::string | sqlstate () |
get sql error state saved during error in last command execution More... | |
longlong | getLong (uint columnIndex) |
decimal_t | getDecimal (uint columnIndex) |
double | getDouble (uint columnIndex) |
MYSQL_TIME | getTime (uint columnIndex) |
char * | getString (uint columnIndex) |
void | set_metadata (Field_type ftype) |
std::string | get_database (uint rowIndex=0) |
std::string | get_table (uint rowIndex=0) |
std::string | get_org_table (uint rowIndex=0) |
std::string | get_column_name (uint rowIndex=0) |
std::string | get_org_column_name (uint rowIndex=0) |
unsigned long | get_length (uint rowIndex=0) |
unsigned int | get_charsetnr (uint rowIndex=0) |
unsigned int | get_flags (uint rowIndex=0) |
unsigned int | get_decimals (uint rowIndex=0) |
enum_field_types | get_field_type (uint rowIndex=0) |
bool | get_killed_status () |
Private Attributes | |
std::vector< std::vector< Field_value * > > | result_value |
std::vector< Field_type > | result_meta |
int | current_row |
uint | num_cols |
uint | num_rows |
uint | num_metarow |
const CHARSET_INFO * | m_resultcs |
uint | m_server_status |
uint | m_warn_count |
ulonglong | m_affected_rows |
ulonglong | m_last_insert_id |
std::string | m_message |
uint | m_sql_errno |
std::string | m_err_msg |
std::string | m_sqlstate |
bool | m_killed |
|
inline |
|
inline |
|
inline |
void Sql_resultset::clear | ( | ) |
resultset class
|
inline |
get sql error message saved during error in last command execution
|
inline |
|
inline |
return rows affected dure to last command execution
|
inline |
get resultset charset info
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
get value of the AUTOINCREMENT column for the last INSERT
|
inline |
|
inline |
get client message
|
inline |
|
inline |
|
inline |
Get Methods.
|
inline |
get server status.
check mysql_com for more details
|
inline |
|
inline |
get count of warning issued during command execution
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Sql_resultset::new_field | ( | Field_value * | val | ) |
void Sql_resultset::new_row | ( | ) |
bool Sql_resultset::next | ( | ) |
|
inline |
set rows affected due to last command execution
affected_rows | number of rows affected due to last operation |
|
inline |
set resultset charset info
result_cs | charset of resulset |
|
inline |
|
inline |
set sql error message saved during error in last command execution
msg | sql error message |
|
inline |
|
inline |
set value of the AUTOINCREMENT column for the last INSERT
last_insert_id | last inserted value in AUTOINCREMENT column |
|
inline |
set client message
msg | client message |
|
inline |
|
inline |
Set Methods.
|
inline |
set server status.
check mysql_com for more details
server_status | server status |
|
inline |
set sql error number saved during error in last command execution
sql_errno | sql error number |
|
inline |
set sql error state saved during error in last command execution
state | sql error state |
|
inline |
set count of warning issued during command execution
warn_count | number of warning |
|
inline |
Getting error info.
get sql error number saved during error in last command execution
0 | OK |
!=0 | SQL Error Number |
|
inline |
get sql error state saved during error in last command execution
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |