Tizen RT Public API  v1.0 D5
arastorage.h File Reference
#include <stdbool.h>
#include <stdio.h>
Include dependency graph for arastorage.h:

Go to the source code of this file.

Functions

db_result_t db_init (void)
 initialize database's resouces, it must be called when user arastorage More...
 
db_result_t db_deinit (void)
 de-initialize database's resouces, it must be called when terminate arastorage. More...
 
db_result_t db_exec (char *format)
 Create Component of Arastorage. More...
 
db_cursor_t * db_query (char *format)
 Arastorage basic query API. More...
 
db_result_t db_cursor_free (db_cursor_t *cursor)
 free allocated cursor data. This should be called before application terminated. More...
 
const char * db_get_result_message (db_result_t code)
 get string of each API's result based on value of db_result_t More...
 
db_result_t db_print_header (db_cursor_t *cursor)
 Print the related information : relation, attribute name. More...
 
db_result_t db_print_tuple (db_cursor_t *cursor)
 Print the tuple data. More...
 
db_result_t db_print_value (db_cursor_t *cursor, int attr_index)
 print current row's data where specific index More...
 
db_result_t cursor_move_first (db_cursor_t *cursor)
 Move current position of cursor to first row. More...
 
db_result_t cursor_move_last (db_cursor_t *cursor)
 Move current position of cursor to last row. More...
 
db_result_t cursor_move_next (db_cursor_t *cursor)
 Move current position of cursor to next row. More...
 
db_result_t cursor_move_prev (db_cursor_t *cursor)
 Move current position of cursor to previous row. More...
 
db_result_t cursor_move_to (db_cursor_t *cursor, tuple_id_t row_id)
 Move current position of cursor to specific row. More...
 
bool cursor_is_first_row (db_cursor_t *cursor)
 Check current position of cursor is first row. More...
 
bool cursor_is_last_row (db_cursor_t *cursor)
 Check current position of cursor is last row. More...
 
cursor_row_t cursor_get_row (db_cursor_t *cursor)
 Get current position of cursor. More...
 
cursor_row_t cursor_get_count (db_cursor_t *cursor)
 get count of total row of cursor More...
 
domain_t cursor_get_attr_type (db_cursor_t *cursor, int attr_index)
 get type of attribute of specific index in cursor More...
 
char * cursor_get_attr_name (db_cursor_t *cursor, int attr_index)
 get name of attribute of specific index in cursor More...
 
attribute_id_t cursor_get_attr_index (db_cursor_t *cursor, const char *attr_name)
 Find index number where using specific attribute name. More...
 
int cursor_get_int_value (db_cursor_t *cursor, int attr_index)
 Get value of current row's data where specific index if it is integer type. More...
 
long cursor_get_long_value (db_cursor_t *cursor, int attr_index)
 Get value of current row's data where specific index if it is long type. More...
 
unsigned char * cursor_get_string_value (db_cursor_t *cursor, int attr_index)
 Get value of current row's data where specific index if it is string type. More...
 

Detailed Description

Declarations of the main Antelope functions.

Author
Nicolas Tsiftes nvt@s.nosp@m.ics..nosp@m.se

Definition in file arastorage.h.