MySQL 8.0.39
Source Code Documentation
|
Functions | |
bool | query_get_string (MYSQL *mysql, const char *query, int column, std::string *str) |
Run a query and return one field in the result set from the first row and column. More... | |
int | get_int_val (const char *str) |
Use stoi function to get the integer value from a string. More... | |
int get_int_val | ( | const char * | str | ) |
Use stoi function to get the integer value from a string.
str | String which may contain an integer or an alphanumeric string. |
Integer | value corresponding to the contents of the string, if conversion is successful, or -1 if integer is out of range, or if the conversion fails. |
bool query_get_string | ( | MYSQL * | mysql, |
const char * | query, | ||
int | column, | ||
std::string * | str | ||
) |
Run a query and return one field in the result set from the first row and column.
mysql | mysql handle |
query | Query string |
column | Column value |
str | String object to store the rvalue |
True | if fails to get the value, true otherwise. |