|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
|
DBMI Library (base) - cursors management. More...

Go to the source code of this file.
DBMI Library (base) - cursors management.
(C) 1999-2009 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file cursor.c.
Allocate columns' flags for cursor.
| cursor | pointer to dbCursor |
Definition at line 275 of file cursor.c.
References db_calloc(), db_get_cursor_number_of_columns(), db_get_error_code(), DB_OK, db_unset_cursor_column_flag(), and NULL.
Referenced by db_open_update_cursor().
Allocate table for cursor.
| cursor | pointer to dbCursor |
| ncols | number of column in table |
Definition at line 38 of file cursor.c.
References db_alloc_table(), db_get_error_code(), DB_OK, and NULL.
Free allocated dbCursor.
| cursor | pointer to dbCursor |
Definition at line 51 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().
Free columns' flags of cursor.
| cursor | pointer to dbCursor |
Definition at line 294 of file cursor.c.
References db_free(), and NULL.
Referenced by db_free_cursor().
Get number of columns.
| cursor | pointer to dbCursor |
Definition at line 393 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().
Get table allocated by cursor.
| cursor | pointer to dbCursor |
Definition at line 67 of file cursor.c.
Referenced by db_get_cursor_number_of_columns(), db_open_insert_cursor(), db_select_CatValArray(), db_select_int(), db_select_value(), NetA_init_distinct(), NetA_init_timetable_from_db(), P_Aux_to_Vector(), and Vect_write_ascii().
Initialize dbCursor.
| cursor | pointer to dbCursor to be initialized |
Definition at line 23 of file cursor.c.
References G_zero().
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().
Set column's flag.
| cursor | pointer to dbCursor |
| col | column index (starting with '0') |
Definition at line 356 of file cursor.c.
Referenced by db_set_cursor_column_for_update().
Set Column flag to 'update'.
| cursor | pointer to dbCursor |
| col | column index (starting with '0') |
Definition at line 307 of file cursor.c.
References db_set_cursor_column_flag().
Set 'intensive' cursor mode.
| cursor | pointer to dbCursor |
Definition at line 226 of file cursor.c.
References DB_INSENSITIVE.
Set table for given cursor.
| cursor | pointer to dbCursor |
| table | pointer to dbTable |
Definition at line 78 of file cursor.c.
Referenced by db_d_open_insert_cursor().
Set cursor to be writable (insert)
| cursor | pointer to dbCursor |
Definition at line 131 of file cursor.c.
References DB_INSERT.
Referenced by db_d_open_insert_cursor().
Set cursor to be read-only (select)
| cursor | pointer to dbCursor |
Definition at line 111 of file cursor.c.
References DB_READONLY.
Referenced by db_d_open_select_cursor().
Set cursor to be writable (update)
| cursor | pointer to dbCursor |
Definition at line 121 of file cursor.c.
References DB_UPDATE.
Referenced by db_d_open_update_cursor().
Checks columns' flag.
Is any cursor column flag set?
| cursor | pointer to dbCursor |
Definition at line 413 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().
Check if columns' flag is 'update'.
| cursor | pointer to dbCursor |
Definition at line 345 of file cursor.c.
References db_test_cursor_any_column_flag().
Checks column's flag.
| cursor | pointer to dbCursor |
| col | column index (starting with '0') |
Definition at line 383 of file cursor.c.
Referenced by db_test_cursor_any_column_flag(), and db_test_cursor_column_for_update().
Check if column flag is 'update'.
| cursor | pointer to dbCursor |
| col | column index (starting with '0') |
Definition at line 332 of file cursor.c.
References db_test_cursor_column_flag().
Check if cursor mode is 'intensive'.
| cursor | pointer to dbCursor |
Definition at line 262 of file cursor.c.
References DB_INSENSITIVE.
Check cursor type.
| cursor | pointer to dbCursor |
Definition at line 144 of file cursor.c.
References DB_INSERT, DB_READONLY, and DB_UPDATE.
Check if cursor type is 'insert'.
| cursor | pointer to dbCursor |
Definition at line 171 of file cursor.c.
References DB_INSERT.
Referenced by db_d_insert().
Check if cursor type is 'update'.
| cursor | pointer to dbCursor |
Definition at line 158 of file cursor.c.
References DB_UPDATE.
Referenced by db_d_bind_update(), db_d_delete(), and db_d_update().
Unset column's flag.
| cursor | pointer to dbCursor |
| col | column index (starting with '0') |
Definition at line 368 of file cursor.c.
Referenced by db_alloc_cursor_column_flags(), and db_unset_cursor_column_for_update().
Unset 'update' column flag.
| cursor | pointer to dbCursor |
| col | column index (starting with '0') |
Definition at line 318 of file cursor.c.
References db_unset_cursor_column_flag().