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