80 cursor->
table = table;
103 cursor->
token = token;
285 for (col = 0; col < ncols; col++)
419 for (col = 0; col < ncols; col++)
int db_test_cursor_mode_scroll(dbCursor *cursor)
Check if cursor mode is 'scroll'.
void db_unset_cursor_mode_insensitive(dbCursor *cursor)
Unset 'intensive' cursor mode.
void db_unset_cursor_column_for_update(dbCursor *cursor, int col)
Unset 'update' column flag.
void db_unset_cursor_mode_scroll(dbCursor *cursor)
Unset 'scroll' cursor mode.
void db_set_cursor_column_for_update(dbCursor *cursor, int col)
Set Column flag to 'update'.
void db_free_table(dbTable *)
Free the table.
int db_test_cursor_column_flag(dbCursor *cursor, int col)
Checks column's flag.
int db_test_cursor_mode_insensitive(dbCursor *cursor)
Check if cursor mode is 'intensive'.
void db_free(void *)
Free allocated memory.
void db_set_cursor_type_readonly(dbCursor *cursor)
Set cursor to be read-only (select)
void db_set_cursor_type_update(dbCursor *cursor)
Set cursor to be writable (update)
void db_init_cursor(dbCursor *cursor)
Initialize dbCursor.
void db_set_cursor_type_insert(dbCursor *cursor)
Set cursor to be writable (insert)
dbToken db_get_cursor_token(dbCursor *cursor)
Get cursor token.
dbTable * db_get_cursor_table(dbCursor *cursor)
Get table allocated by cursor.
int db_get_error_code(void)
Get error code.
void db_set_cursor_column_flag(dbCursor *cursor, int col)
Set column's flag.
int db_alloc_cursor_column_flags(dbCursor *cursor)
Allocate columns' flags for cursor.
void db_unset_cursor_column_flag(dbCursor *cursor, int col)
Unset column's flag.
int db_test_cursor_any_column_for_update(dbCursor *cursor)
Check if columns' flag is 'update'.
int db_test_cursor_type_insert(dbCursor *cursor)
Check if cursor type is 'insert'.
void db_free_cursor_column_flags(dbCursor *cursor)
Free columns' flags of cursor.
void * db_calloc(int, int)
Allocate memory.
void db_set_cursor_mode(dbCursor *cursor, int mode)
Set cursor mode.
void db_free_cursor(dbCursor *cursor)
Free allocated dbCursor.
dbTable * db_alloc_table(int)
Allocate a table with a specific number of columns.
int db_test_cursor_type_fetch(dbCursor *cursor)
Check cursor type.
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
int db_get_cursor_number_of_columns(dbCursor *cursor)
Get number of columns.
void db_unset_cursor_mode(dbCursor *cursor)
Unset cursor mode.
void db_set_cursor_token(dbCursor *cursor, dbToken token)
Set cursor token.
void db_set_cursor_table(dbCursor *cursor, dbTable *table)
Set table for given cursor.
void db_set_cursor_mode_insensitive(dbCursor *cursor)
Set 'intensive' cursor mode.
int db_get_table_number_of_columns(dbTable *)
Return the number of columns of the table.
int db_alloc_cursor_table(dbCursor *cursor, int ncols)
Allocate table for cursor.
int db_test_cursor_any_column_flag(dbCursor *cursor)
Checks columns' flag.
int db_test_cursor_type_update(dbCursor *cursor)
Check if cursor type is 'update'.
void db_set_cursor_mode_scroll(dbCursor *cursor)
Set 'scroll' cursor mode.
int db_test_cursor_column_for_update(dbCursor *cursor, int col)
Check if column flag is 'update'.