17 #include <grass/gis.h> 18 #include <grass/dbmi.h> 19 #include <grass/glocale.h> 101 "Creating new default DB params with db_set_default_connection()");
110 connection.
databaseName =
"$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/";
134 "$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db";
int G_make_mapset_element(const char *p_element)
Create element in the current mapset.
const char * db_get_default_driver_name(void)
Get driver name from current DB connection settings.
int db_set_connection(dbConnection *connection)
Set default DB connection settings.
const char * db_get_default_database_name(void)
Get database name from current DB connection settings.
#define DB_DEFAULT_DRIVER
const char * db_get_default_schema_name(void)
Get schema name from current DB connection settings.
char * G_store(const char *s)
Copy string to allocated memory.
void G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.
char * G_location_path(void)
Get current location UNIX-like path.
const char * db_get_default_group_name(void)
Get group name from current DB connection settings.
int G_debug(int level, const char *msg,...)
Print debugging message.
const char * G_getenv_nofatal2(const char *name, int loc)
Get environment variable from specific place.
const char * G_mapset(void)
Get current mapset name.
void G_zero(void *buf, int i)
Zero out a buffer, buf, of length i.
int db_set_default_connection(void)
Sets up database connection settings using GRASS default from dbmi.h.