GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cursor.c File Reference
#include <stdlib.h>
#include <grass/dbmi.h>
Include dependency graph for cursor.c:

Go to the source code of this file.

Functions

void db_init_cursor (dbCursor *cursor)
 
int db_alloc_cursor_table (dbCursor *cursor, int ncols)
 
void db_free_cursor (dbCursor *cursor)
 
dbTable * db_get_cursor_table (dbCursor *cursor)
 
void db_set_cursor_table (dbCursor *cursor, dbTable *table)
 
dbToken db_get_cursor_token (dbCursor *cursor)
 
void db_set_cursor_token (dbCursor *cursor, dbToken token)
 
void db_set_cursor_type_readonly (dbCursor *cursor)
 
void db_set_cursor_type_update (dbCursor *cursor)
 
void db_set_cursor_type_insert (dbCursor *cursor)
 
int db_test_cursor_type_fetch (dbCursor *cursor)
 
int db_test_cursor_type_update (dbCursor *cursor)
 
int db_test_cursor_type_insert (dbCursor *cursor)
 
void db_set_cursor_mode (dbCursor *cursor, int mode)
 
void db_set_cursor_mode_scroll (dbCursor *cursor)
 
void db_unset_cursor_mode_scroll (dbCursor *cursor)
 
void db_unset_cursor_mode (dbCursor *cursor)
 
void db_set_cursor_mode_insensitive (dbCursor *cursor)
 
void db_unset_cursor_mode_insensitive (dbCursor *cursor)
 
int db_test_cursor_mode_scroll (dbCursor *cursor)
 
int db_test_cursor_mode_insensitive (dbCursor *cursor)
 
int db_alloc_cursor_column_flags (dbCursor *cursor)
 
void db_free_cursor_column_flags (dbCursor *cursor)
 
void db_set_cursor_column_for_update (dbCursor *cursor, int col)
 
void db_unset_cursor_column_for_update (dbCursor *cursor, int col)
 
int db_test_cursor_column_for_update (dbCursor *cursor, int col)
 
int db_test_cursor_any_column_for_update (dbCursor *cursor)
 
void db_set_cursor_column_flag (dbCursor *cursor, int col)
 
void db_unset_cursor_column_flag (dbCursor *cursor, int col)
 
int db_test_cursor_column_flag (dbCursor *cursor, int col)
 
int db_get_cursor_number_of_columns (dbCursor *cursor)
 
int db_test_cursor_any_column_flag (dbCursor *cursor)
 

Function Documentation

int db_alloc_cursor_column_flags ( dbCursor *  cursor)
Returns
Parameters

Definition at line 254 of file cursor.c.

References db_calloc(), db_get_cursor_number_of_columns(), db_get_error_code(), db_unset_cursor_column_flag(), and NULL.

Referenced by db_open_update_cursor().

int db_alloc_cursor_table ( dbCursor *  cursor,
int  ncols 
)
Returns
Parameters

Definition at line 26 of file cursor.c.

References db_alloc_table(), db_get_error_code(), and NULL.

void db_free_cursor ( dbCursor *  cursor)
Returns
Parameters

Definition at line 40 of file cursor.c.

References db_free_cursor_column_flags(), db_free_table(), and db_init_cursor().

Referenced by db_close_cursor(), and db_d_close_cursor().

void db_free_cursor_column_flags ( dbCursor *  cursor)
Returns
Parameters

Definition at line 274 of file cursor.c.

References db_free(), and NULL.

Referenced by db_free_cursor().

int db_get_cursor_number_of_columns ( dbCursor *  cursor)
dbToken db_get_cursor_token ( dbCursor *  cursor)
Returns
Parameters

Definition at line 77 of file cursor.c.

void db_init_cursor ( dbCursor *  cursor)
void db_set_cursor_column_flag ( dbCursor *  cursor,
int  col 
)
Returns
Parameters

Definition at line 331 of file cursor.c.

Referenced by db_set_cursor_column_for_update().

void db_set_cursor_column_for_update ( dbCursor *  cursor,
int  col 
)
Returns
Parameters

Definition at line 287 of file cursor.c.

References db_set_cursor_column_flag().

void db_set_cursor_mode ( dbCursor *  cursor,
int  mode 
)
Returns
Parameters

Definition at line 165 of file cursor.c.

References tools::mode.

void db_set_cursor_mode_insensitive ( dbCursor *  cursor)
Returns
Parameters

Definition at line 209 of file cursor.c.

void db_set_cursor_mode_scroll ( dbCursor *  cursor)
Returns
Parameters

Definition at line 176 of file cursor.c.

void db_set_cursor_table ( dbCursor *  cursor,
dbTable *  table 
)
Returns
Parameters

Definition at line 66 of file cursor.c.

Referenced by db_d_open_insert_cursor().

void db_set_cursor_token ( dbCursor *  cursor,
dbToken  token 
)
Returns
Parameters

Definition at line 88 of file cursor.c.

void db_set_cursor_type_insert ( dbCursor *  cursor)
Returns
Parameters

Definition at line 121 of file cursor.c.

Referenced by db_d_open_insert_cursor().

void db_set_cursor_type_readonly ( dbCursor *  cursor)
Returns
Parameters

Definition at line 99 of file cursor.c.

Referenced by db_d_open_select_cursor().

void db_set_cursor_type_update ( dbCursor *  cursor)
Returns
Parameters

Definition at line 110 of file cursor.c.

Referenced by db_d_open_update_cursor().

int db_test_cursor_any_column_flag ( dbCursor *  cursor)
int db_test_cursor_any_column_for_update ( dbCursor *  cursor)
Returns
Parameters

Definition at line 320 of file cursor.c.

References db_test_cursor_any_column_flag().

int db_test_cursor_column_flag ( dbCursor *  cursor,
int  col 
)
Returns
Parameters

Definition at line 355 of file cursor.c.

Referenced by db_test_cursor_any_column_flag(), and db_test_cursor_column_for_update().

int db_test_cursor_column_for_update ( dbCursor *  cursor,
int  col 
)
Returns
Parameters

Definition at line 309 of file cursor.c.

References db_test_cursor_column_flag().

int db_test_cursor_mode_insensitive ( dbCursor *  cursor)
Returns
Parameters

Definition at line 243 of file cursor.c.

int db_test_cursor_mode_scroll ( dbCursor *  cursor)
Returns
Parameters

Definition at line 231 of file cursor.c.

int db_test_cursor_type_fetch ( dbCursor *  cursor)
Returns
Parameters

Definition at line 132 of file cursor.c.

int db_test_cursor_type_insert ( dbCursor *  cursor)
Returns
Parameters

Definition at line 154 of file cursor.c.

Referenced by db_d_insert().

int db_test_cursor_type_update ( dbCursor *  cursor)
Returns
Parameters

Definition at line 143 of file cursor.c.

Referenced by db_d_bind_update(), db_d_delete(), and db_d_update().

void db_unset_cursor_column_flag ( dbCursor *  cursor,
int  col 
)
Returns
Parameters

Definition at line 343 of file cursor.c.

Referenced by db_alloc_cursor_column_flags(), and db_unset_cursor_column_for_update().

void db_unset_cursor_column_for_update ( dbCursor *  cursor,
int  col 
)
Returns
Parameters

Definition at line 298 of file cursor.c.

References db_unset_cursor_column_flag().

void db_unset_cursor_mode ( dbCursor *  cursor)
Returns
Parameters

Definition at line 198 of file cursor.c.

void db_unset_cursor_mode_insensitive ( dbCursor *  cursor)
Returns
Parameters

Definition at line 220 of file cursor.c.

void db_unset_cursor_mode_scroll ( dbCursor *  cursor)
Returns
Parameters

Definition at line 187 of file cursor.c.