|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-4bb960b182
|
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.
SPDX-FileCopyrightText: 1999-2010 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later
SPDX-FileCopyrightText: 2012-2014 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later
Definition in file db/dbmi_base/default_name.c.
Get database name from current DB connection settings.
Definition at line 41 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 25 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 73 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 57 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 93 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().