Cursor
[Data Access]

A cursor is used to navigate the contents of a table or the result of an SQL query. More...

Typedefs

typedef struct db_cursor_t_s * db_cursor_t

Functions

db_cursor_t db_duplicate_cursor (db_cursor_t, db_flags_t flags)
db_result_t db_close_cursor (db_cursor_t)
db_flags_t db_get_cursor_flags (db_cursor_t)
db_fieldno_t db_find_field (db_cursor_t, const db_objname_t *)
db_fieldno_t db_get_field_count (db_cursor_t)
db_result_t db_get_field (db_cursor_t, db_fieldno_t, db_fielddef_t *)
int db_bof (db_cursor_t)
int db_eof (db_cursor_t)
db_result_t db_seek_first (db_cursor_t)
db_result_t db_seek_next (db_cursor_t)
db_result_t db_fetch (db_cursor_t, db_row_t, db_object_t)
db_result_t db_qfetch (db_cursor_t, const db_bind_t *, db_len_t, db_object_t)

Cursor Scan Flags



#define DB_SCAN_FORWARD   _DB_SCAN_FORWARD
#define DB_SCAN_BACKWARD   _DB_SCAN_BACKWARD
#define DB_SCAN_MASK   _DB_SCAN_MASK

Cursor Capability Flags



#define DB_CAN_MODIFY   _DB_CAN_MODIFY
#define DB_CAN_BOOKMARK   _DB_CAN_BOOKMARK
#define DB_CURSOR_MASK   _DB_CURSOR_MASK

Detailed Description

A cursor is used to navigate the contents of a table or the result of an SQL query.

To obtain a cursor handle for a table, call db_open_table_cursor. To create a cursor from an SQL statement, call db_prepare_sql_cursor and then db_execute.

See also:
SQL, Table Cursor
 All Data Structures Files Functions Variables Typedefs Defines
Copyright © 2005-2011 ITTIA®. All rights reserved.