src/evsql.h
changeset 34 460f995d3769
parent 31 7804cd7b5cd5
child 38 1fd4da071575
equal deleted inserted replaced
33:c71f3053c714 34:460f995d3769
   238 size_t evsql_result_rows (const struct evsql_result_info *res);
   238 size_t evsql_result_rows (const struct evsql_result_info *res);
   239 
   239 
   240 // number of columns in the result
   240 // number of columns in the result
   241 size_t evsql_result_cols (const struct evsql_result_info *res);
   241 size_t evsql_result_cols (const struct evsql_result_info *res);
   242 
   242 
       
   243 // number of affected rows for UPDATE/INSERT
       
   244 size_t evsql_result_affected (const struct evsql_result_info *res);
       
   245 
   243 // fetch the raw binary value from a result set, and return it via ptr
   246 // fetch the raw binary value from a result set, and return it via ptr
   244 // if size is nonzero, check that the size of the field data matches
   247 // if size is nonzero, check that the size of the field data matches
   245 int evsql_result_binary (const struct evsql_result_info *res, size_t row, size_t col, const char **ptr, size_t *size, int nullok);
   248 int evsql_result_binary (const struct evsql_result_info *res, size_t row, size_t col, const char **ptr, size_t *size, int nullok);
   246 int evsql_result_string (const struct evsql_result_info *res, size_t row, size_t col, const char **ptr, int nullok);
   249 int evsql_result_string (const struct evsql_result_info *res, size_t row, size_t col, const char **ptr, int nullok);
   247 
   250