src/evsql.h
changeset 30 d8fabd347a8e
parent 28 e944453ca924
child 31 7804cd7b5cd5
equal deleted inserted replaced
29:5de62ca9a5aa 30:d8fabd347a8e
   229 // number of columns in the result
   229 // number of columns in the result
   230 size_t evsql_result_cols (const struct evsql_result_info *res);
   230 size_t evsql_result_cols (const struct evsql_result_info *res);
   231 
   231 
   232 // fetch the raw binary value from a result set, and return it via ptr
   232 // fetch the raw binary value from a result set, and return it via ptr
   233 // if size is nonzero, check that the size of the field data matches
   233 // if size is nonzero, check that the size of the field data matches
       
   234 int evsql_result_buf    (const struct evsql_result_info *res, size_t row, size_t col, const char **ptr, size_t *size, int nullok);
   234 int evsql_result_binary (const struct evsql_result_info *res, size_t row, size_t col, const char **ptr, size_t size, int nullok);
   235 int evsql_result_binary (const struct evsql_result_info *res, size_t row, size_t col, const char **ptr, size_t size, int nullok);
   235 int evsql_result_string (const struct evsql_result_info *res, size_t row, size_t col, const char **ptr, int nullok);
   236 int evsql_result_string (const struct evsql_result_info *res, size_t row, size_t col, const char **ptr, int nullok);
   236 
   237 
   237 // fetch certain kinds of values from a binary result set
   238 // fetch certain kinds of values from a binary result set
   238 int evsql_result_uint16 (const struct evsql_result_info *res, size_t row, size_t col, uint16_t *uval, int nullok);
   239 int evsql_result_uint16 (const struct evsql_result_info *res, size_t row, size_t col, uint16_t *uval, int nullok);