|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|
DBMI Library (base) - handle management. More...

Go to the source code of this file.
Functions | |
| void | db_init_handle (dbHandle *handle) |
| Initialize handle (i.e database/schema) | |
| int | db_set_handle (dbHandle *handle, const char *dbName, const char *dbSchema) |
| Set handle (database and schema name) | |
| const char * | db_get_handle_dbname (dbHandle *handle) |
| Get handle database name. | |
| const char * | db_get_handle_dbschema (dbHandle *handle) |
| Get handle schema name. | |
| void | db_free_handle (dbHandle *handle) |
| Free dbHandle structure. | |
| void | db_free_handle_array (dbHandle *handle, int count) |
| Free array of handles. | |
| dbHandle * | db_alloc_handle_array (int count) |
| Allocate array of handles. | |
DBMI Library (base) - handle 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 handle.c.
Allocate array of handles.
| count | number of handles in the array |
Definition at line 109 of file handle.c.
References count, db_calloc(), and db_init_handle().
Referenced by db_list_databases().
Free dbHandle structure.
| handle | pointer to dbHandle |
Definition at line 79 of file handle.c.
References db_free_string(), _db_handle::dbName, and _db_handle::dbSchema.
Referenced by db_d_create_database(), db_d_delete_database(), db_d_find_database(), db_d_open_database(), db_find_database(), and db_free_handle_array().
Free array of handles.
| handle | pointer to first dbHandle in the array |
| count | number of handles in the array |
Definition at line 91 of file handle.c.
References count, db_free(), and db_free_handle().
Referenced by db_d_list_databases().
Get handle database name.
| handle | pointer to dbHandle |
Definition at line 57 of file handle.c.
References db_get_string(), and _db_handle::dbName.
Referenced by db_d_open_database(), and db_find_database().
Get handle schema name.
| handle | pointer to dbHandle |
Definition at line 69 of file handle.c.
References db_get_string(), and _db_handle::dbSchema.
Referenced by db_d_open_database(), and db_find_database().
Initialize handle (i.e database/schema)
| handle | pointer to dbHandle to be initialized |
Definition at line 23 of file handle.c.
References db_init_string(), _db_handle::dbName, and _db_handle::dbSchema.
Referenced by db_alloc_handle_array(), db_d_create_database(), db_d_delete_database(), db_d_find_database(), db_d_open_database(), db_start_driver_open_database(), IL_vector_input_data_2d(), Vect_get_column_names(), Vect_get_column_names_types(), Vect_get_column_types(), Vect_net_build_graph(), Vect_net_ttb_build_graph(), and Vect_write_ascii().
Set handle (database and schema name)
| handle | pointer to dbHandle |
| dbName | database name |
| dbSchema | schema name |
Definition at line 39 of file handle.c.
References DB_OK, db_set_string(), _db_handle::dbName, and _db_handle::dbSchema.
Referenced by db_find_database(), db_start_driver_open_database(), IL_vector_input_data_2d(), Vect_get_column_names(), Vect_get_column_names_types(), Vect_get_column_types(), and Vect_write_ascii().