/* Functions for extraction the field values from a binary result table. */ char *db_binary_field_get(DB_Binary_Result_t *res, unsigned int row, unsigned int col); int db_binary_field_is_null(DB_Binary_Result_t *res, unsigned int row, unsigned int col); DB_Type_t db_binary_column_type(DB_Binary_Result_t *res, unsigned int col); void db_print_binary_field_type(DB_Type_t dbtype); /* with conversion... */ char db_binary_field_getchar(DB_Binary_Result_t *res, unsigned int row, unsigned int col); int db_binary_field_getint(DB_Binary_Result_t *res, unsigned int row, unsigned int col); float db_binary_field_getfloat(DB_Binary_Result_t *res, unsigned int row, unsigned int col); double db_binary_field_getdouble(DB_Binary_Result_t *res, unsigned int row, unsigned int col); void db_binary_field_getstr(DB_Binary_Result_t *res, unsigned int row, unsigned int col, int len, char *str); /* Formated printing of table of results. */ void db_print_binary_result(DB_Binary_Result_t *res); void db_print_binary_field(DB_Type_t dbtype, int width, char *data); int db_sprint_binary_field(DB_Type_t dbtype, int width, char *data, char *dst); int db_binary_default_width(DB_Type_t dbtype); void db_print_text_result(DB_Text_Result_t *res); /* Free result buffers allocated by db_query functions. */ void db_free_binary_result(DB_Binary_Result_t *db_result); void db_free_text_result(DB_Text_Result_t *db_result);