|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|
DBMI Library (base) - default settings. More...
#include <stdlib.h>#include <string.h>#include <grass/gis.h>#include <grass/dbmi.h>#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
| const char * | db_get_default_driver_name (void) |
| Get driver name from current DB connection settings. | |
| const char * | db_get_default_database_name (void) |
| Get database name from current DB connection settings. | |
| const char * | db_get_default_schema_name (void) |
| Get schema name from current DB connection settings. | |
| const char * | db_get_default_group_name (void) |
| Get group name from current DB connection settings. | |
| int | db_set_default_connection (void) |
| Sets up database connection settings using GRASS default from dbmi.h. | |
DBMI Library (base) - default settings.
Temporal GIS Library (base) - default settings.
(C) 1999-2010 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.
(C) 2012-2014 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 db/dbmi_base/default_name.c.
Get database name from current DB connection settings.
Definition at line 43 of file db/dbmi_base/default_name.c.
References G_getenv_nofatal2(), G_store(), G_VAR_MAPSET, and NULL.
Get driver name from current DB connection settings.
Definition at line 27 of file db/dbmi_base/default_name.c.
References G_getenv_nofatal2(), G_store(), G_VAR_MAPSET, and NULL.
Get group name from current DB connection settings.
Definition at line 75 of file db/dbmi_base/default_name.c.
References G_getenv_nofatal2(), G_store(), G_VAR_MAPSET, and NULL.
Get schema name from current DB connection settings.
Definition at line 59 of file db/dbmi_base/default_name.c.
References G_getenv_nofatal2(), G_store(), G_VAR_MAPSET, and NULL.
Sets up database connection settings using GRASS default from dbmi.h.
This function ignores current DB connection settings and uses GRASS default settings instead.
Definition at line 95 of file db/dbmi_base/default_name.c.
References _, DB_DEFAULT_DRIVER, DB_OK, db_set_connection(), G_debug(), G_fatal_error(), G_location_path(), G_make_mapset_object_group(), G_mapset(), G_zero(), and GPATH_MAX.
Referenced by Vect_default_field_info().