#include <string>
#include "mysql.h"
 
Go to the source code of this file.
◆ get_int_val()
      
        
          | int get_int_val  | 
          ( | 
          const char *  | 
          str | ) | 
           | 
        
      
 
Use stoi function to get the integer value from a string. 
- Parameters
 - 
  
    | str | String which may contain an integer or an alphanumeric string. | 
  
   
- Return values
 - 
  
    | 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.  | 
  
   
 
 
◆ query_get_string()
      
        
          | 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. 
- Parameters
 - 
  
    | mysql | mysql handle  | 
    | query | Query string  | 
    | column | Column value  | 
    | str | String object to store the rvalue | 
  
   
- Return values
 - 
  
    | True | if fails to get the value, true otherwise.  |