42 char default_connection[2048];
44 snprintf(default_connection, 2048,
"$GISDBASE/$LOCATION_NAME/$MAPSET/%s",
47 return G_store(default_connection);
61 snprintf(db_name, 2048,
"%s", tmp);
71 _(
"Programmer error - only SQLite driver is currently supported"));
void G_free(void *)
Free allocated memory.
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
char * G_store(const char *)
Copy string to allocated memory.
const char * tgis_get_default_driver_name(void)
Get default TGIS driver name.
int tgis_set_default_connection(void)
Sets up TGIS database connection settings using GRASS default.
char * tgis_get_default_database_name(void)
Get default TGIS database name for the sqlite connection.
int tgis_set_connection(dbConnection *connection)
Set Temporal GIS DB connection settings.
#define TGISDB_DEFAULT_SQLITE_PATH
#define TGISDB_DEFAULT_DRIVER