44 #define RESULT_TUPLE_INVALID(tuple) ((tuple) == NULL)
45 #define RESULT_TUPLE_SIZE(handle) (handle).rel->row_length
47 typedef unsigned char *tuple_t;
49 #define DB_HANDLE_FLAG_INDEX_STEP 0x01
50 #define DB_HANDLE_FLAG_SEARCH_INDEX 0x02
51 #define DB_HANDLE_FLAG_PROCESSING 0x04
54 index_iterator_t index_iterator;
56 tuple_id_t current_row;
60 relation_t *right_rel;
61 relation_t *result_rel;
62 attribute_t *left_join_attr;
63 attribute_t *right_join_attr;
69 typedef struct db_handle db_handle_t;
71 db_result_t db_get_value(attribute_value_t *value,
72 db_handle_t *handle,
unsigned col);
73 db_result_t db_phy_to_value(attribute_value_t *value,
74 attribute_t *attr,
unsigned char *ptr);
75 db_result_t db_value_to_phy(
unsigned char *ptr,
76 attribute_t *attr, attribute_value_t *value);
77 long db_value_to_long(attribute_value_t *value);
78 db_result_t db_free(db_handle_t *handle);
The storage interface used by the database.