GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
DBMI Library (driver) - drivers state. More...
Go to the source code of this file.
Functions | |
void | db__init_driver_state (void) |
Initialize driver state. More... | |
dbDriverState * | db__get_driver_state (void) |
Get driver state. More... | |
int | db__test_database_open (void) |
Test database connection. More... | |
void | db__mark_database_open (const char *dbname, const char *dbschema) |
Mark database as opened. More... | |
void | db__mark_database_closed (void) |
Mark database as closed. More... | |
void | db__add_cursor_to_driver_state (dbCursor *cursor) |
Add cursor do driver state. More... | |
void | db__drop_cursor_from_driver_state (dbCursor *cursor) |
Drop cursor from driver state. More... | |
void | db__close_all_cursors (void) |
Close all cursors. More... | |
DBMI Library (driver) - drivers state.
(C) 1999-2008 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 driver_state.c.
void db__add_cursor_to_driver_state | ( | dbCursor * | cursor | ) |
Add cursor do driver state.
cursor | db cursor to be added |
Definition at line 79 of file driver_state.c.
References _db_driver_state::cursor_list, db_realloc(), list, _db_driver_state::ncursors, and NULL.
void db__close_all_cursors | ( | void | ) |
Close all cursors.
Definition at line 122 of file driver_state.c.
References _db_driver_state::cursor_list, db_driver_close_cursor, db_free(), _db_driver_state::ncursors, and NULL.
Referenced by db_d_close_database().
void db__drop_cursor_from_driver_state | ( | dbCursor * | cursor | ) |
Drop cursor from driver state.
cursor | db cursor to be dropped |
Definition at line 110 of file driver_state.c.
References _db_driver_state::cursor_list, _db_driver_state::ncursors, and NULL.
Referenced by db_d_close_cursor().
dbDriverState* db__get_driver_state | ( | void | ) |
Get driver state.
Definition at line 35 of file driver_state.c.
References state.
void db__init_driver_state | ( | void | ) |
Initialize driver state.
Definition at line 25 of file driver_state.c.
References db_zero().
Referenced by db_d_close_database().
void db__mark_database_closed | ( | void | ) |
Mark database as closed.
Definition at line 67 of file driver_state.c.
References db_free(), _db_driver_state::dbname, _db_driver_state::dbschema, and _db_driver_state::open.
Referenced by db_d_close_database().
void db__mark_database_open | ( | const char * | dbname, |
const char * | dbschema | ||
) |
Mark database as opened.
dbname | database name |
dbschema | database schema name |
Definition at line 57 of file driver_state.c.
References db_store(), _db_driver_state::dbname, _db_driver_state::dbschema, and _db_driver_state::open.
Referenced by db_d_open_database().
int db__test_database_open | ( | void | ) |
Test database connection.
Definition at line 46 of file driver_state.c.
References _db_driver_state::open.
Referenced by db_d_close_database(), and db_d_open_database().