|
Tizen RT Public API
v1.0 D5
|
Provides APIs for Lightweight Database. More...
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... | |
Provides APIs for Lightweight Database.
| attribute_id_t cursor_get_attr_index | ( | db_cursor_t * | cursor, |
| const char * | attr_name | ||
| ) |
Find index number where using specific attribute name.
| [in] | Current | cursor |
| [in] | Candidate | name of attribute |
| char* cursor_get_attr_name | ( | db_cursor_t * | cursor, |
| int | attr_index | ||
| ) |
get name of attribute of specific index in cursor
| [in] | Current | cursor |
| [in] | Index | of column in cursor |
| domain_t cursor_get_attr_type | ( | db_cursor_t * | cursor, |
| int | attr_index | ||
| ) |
get type of attribute of specific index in cursor
| [in] | Current | cursor |
| [in] | Index | of column in cursor |
| cursor_row_t cursor_get_count | ( | db_cursor_t * | cursor | ) |
get count of total row of cursor
| [in] | Current | cursor |
| 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.
| [in] | Current | cursor |
| [in] | Index | of cursor |
| 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.
| [in] | Current | cursor |
| [in] | Index | of cursor |
| cursor_row_t cursor_get_row | ( | db_cursor_t * | cursor | ) |
Get current position of cursor.
| [in] | Current | cursor |
| 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.
| [in] | Current | cursor |
| [in] | Index | of cursor |
| bool cursor_is_first_row | ( | db_cursor_t * | cursor | ) |
Check current position of cursor is first row.
| [in] | Current | cursor |
| bool cursor_is_last_row | ( | db_cursor_t * | cursor | ) |
Check current position of cursor is last row.
| [in] | Current | cursor |
| db_result_t cursor_move_first | ( | db_cursor_t * | cursor | ) |
Move current position of cursor to first row.
| [in] | Current | cursor |
| db_result_t cursor_move_last | ( | db_cursor_t * | cursor | ) |
Move current position of cursor to last row.
| [in] | Current | cursor |
| db_result_t cursor_move_next | ( | db_cursor_t * | cursor | ) |
Move current position of cursor to next row.
| [in] | Current | cursor |
| db_result_t cursor_move_prev | ( | db_cursor_t * | cursor | ) |
Move current position of cursor to previous row.
| [in] | Current | cursor |
| db_result_t cursor_move_to | ( | db_cursor_t * | cursor, |
| tuple_id_t | row_id | ||
| ) |
Move current position of cursor to specific row.
| [in] | Current | cursor |
| db_result_t db_cursor_free | ( | db_cursor_t * | cursor | ) |
free allocated cursor data. This should be called before application terminated.
| [out] | cursor | of current tuple's selected data |
| db_result_t db_deinit | ( | void | ) |
de-initialize database's resouces, it must be called when terminate arastorage.
| none |
| db_result_t db_exec | ( | char * | format | ) |
Create Component of Arastorage.
| [in] | handle | of database |
| [in] | query | sentence |
| const char* db_get_result_message | ( | db_result_t | code | ) |
get string of each API's result based on value of db_result_t
| [in] | result | value of each API |
| db_result_t db_init | ( | void | ) |
initialize database's resouces, it must be called when user arastorage
| none |
| db_result_t db_print_header | ( | db_cursor_t * | cursor | ) |
Print the related information : relation, attribute name.
| [in] | Current | cursor |
| db_result_t db_print_tuple | ( | db_cursor_t * | cursor | ) |
Print the tuple data.
| [in] | Current | cursor |
| db_result_t db_print_value | ( | db_cursor_t * | cursor, |
| int | attr_index | ||
| ) |
print current row's data where specific index
| [in] | Current | cursor |
| [in] | Index | of cursor |
| db_cursor_t* db_query | ( | char * | format | ) |
Arastorage basic query API.
| [in] | handle | of database |
| [in] | query | sentence |