#include <stdlib.h>
#include <grass/dbmi.h>
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) |
int db_alloc_cursor_column_flags | ( | dbCursor * | cursor | ) |
Definition at line 280 of file cursor.c.
References db_calloc(), db_get_cursor_number_of_columns(), db_get_error_code(), and db_unset_cursor_column_flag().
Referenced by db_open_update_cursor().
int db_alloc_cursor_table | ( | dbCursor * | cursor, | |
int | ncols | |||
) |
Definition at line 28 of file cursor.c.
References db_alloc_table(), and db_get_error_code().
void db_free_cursor | ( | dbCursor * | cursor | ) |
Definition at line 44 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 | ) |
int db_get_cursor_number_of_columns | ( | dbCursor * | cursor | ) |
Definition at line 408 of file cursor.c.
References db_get_cursor_table(), and db_get_table_number_of_columns().
Referenced by db_alloc_cursor_column_flags(), db_bind_update(), and db_test_cursor_any_column_flag().
dbTable * db_get_cursor_table | ( | dbCursor * | cursor | ) |
Definition at line 60 of file cursor.c.
Referenced by db__copy_table(), db_get_cursor_number_of_columns(), db_open_insert_cursor(), db_select_CatValArray(), db_select_int(), and db_select_value().
dbToken db_get_cursor_token | ( | dbCursor * | cursor | ) |
void db_init_cursor | ( | dbCursor * | cursor | ) |
Definition at line 11 of file cursor.c.
Referenced by db_d_open_insert_cursor(), db_d_open_select_cursor(), db_d_open_update_cursor(), db_free_cursor(), db_open_select_cursor(), and db_open_update_cursor().
void db_set_cursor_column_flag | ( | dbCursor * | cursor, | |
int | col | |||
) |
Definition at line 367 of file cursor.c.
Referenced by db_set_cursor_column_for_update().
void db_set_cursor_column_for_update | ( | dbCursor * | cursor, | |
int | col | |||
) |
Definition at line 315 of file cursor.c.
References db_set_cursor_column_flag().
void db_set_cursor_mode | ( | dbCursor * | cursor, | |
int | mode | |||
) |
void db_set_cursor_mode_insensitive | ( | dbCursor * | cursor | ) |
void db_set_cursor_mode_scroll | ( | dbCursor * | cursor | ) |
void db_set_cursor_table | ( | dbCursor * | cursor, | |
dbTable * | table | |||
) |
Definition at line 72 of file cursor.c.
Referenced by db_d_open_insert_cursor().
void db_set_cursor_token | ( | dbCursor * | cursor, | |
dbToken | token | |||
) |
void db_set_cursor_type_insert | ( | dbCursor * | cursor | ) |
Definition at line 134 of file cursor.c.
Referenced by db_d_open_insert_cursor().
void db_set_cursor_type_readonly | ( | dbCursor * | cursor | ) |
Definition at line 110 of file cursor.c.
Referenced by db_d_open_select_cursor().
void db_set_cursor_type_update | ( | dbCursor * | cursor | ) |
Definition at line 122 of file cursor.c.
Referenced by db_d_open_update_cursor().
int db_test_cursor_any_column_flag | ( | dbCursor * | cursor | ) |
Definition at line 426 of file cursor.c.
References db_get_cursor_number_of_columns(), and db_test_cursor_column_flag().
Referenced by db_d_bind_update(), db_d_update(), and db_test_cursor_any_column_for_update().
int db_test_cursor_any_column_for_update | ( | dbCursor * | cursor | ) |
Definition at line 355 of file cursor.c.
References db_test_cursor_any_column_flag().
int db_test_cursor_column_flag | ( | dbCursor * | cursor, | |
int | col | |||
) |
Definition at line 395 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 | |||
) |
Definition at line 342 of file cursor.c.
References db_test_cursor_column_flag().
int db_test_cursor_mode_insensitive | ( | dbCursor * | cursor | ) |
int db_test_cursor_mode_scroll | ( | dbCursor * | cursor | ) |
int db_test_cursor_type_fetch | ( | dbCursor * | cursor | ) |
int db_test_cursor_type_insert | ( | dbCursor * | cursor | ) |
int db_test_cursor_type_update | ( | dbCursor * | cursor | ) |
Definition at line 158 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 | |||
) |
Definition at line 381 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 | |||
) |
Definition at line 328 of file cursor.c.
References db_unset_cursor_column_flag().
void db_unset_cursor_mode | ( | dbCursor * | cursor | ) |
void db_unset_cursor_mode_insensitive | ( | dbCursor * | cursor | ) |
void db_unset_cursor_mode_scroll | ( | dbCursor * | cursor | ) |