GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
temporal/lib/default_name.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/temporal.h>
#include <grass/glocale.h>
Include dependency graph for temporal/lib/default_name.c:

Go to the source code of this file.

Functions

const char * tgis_get_default_driver_name (void)
 Get default TGIS driver name. More...
 
char * tgis_get_default_database_name (void)
 Get default TGIS database name for the sqlite connection. More...
 
int tgis_set_default_connection (void)
 Sets up TGIS database connection settings using GRASS default. More...
 

Function Documentation

◆ tgis_get_default_database_name()

char* tgis_get_default_database_name ( void  )

Get default TGIS database name for the sqlite connection.

The default name is $GISDBASE/$LOCATION_NAME/$MAPSET/tgis/sqlite.db

Returns
pointer to default TGIS database name

Definition at line 40 of file temporal/lib/default_name.c.

References G_store(), and TGISDB_DEFAULT_SQLITE_PATH.

◆ tgis_get_default_driver_name()

const char* tgis_get_default_driver_name ( void  )

Get default TGIS driver name.

Returns
pointer to default TGIS driver name

Definition at line 28 of file temporal/lib/default_name.c.

References TGISDB_DEFAULT_DRIVER.

◆ tgis_set_default_connection()

int tgis_set_default_connection ( void  )

Sets up TGIS database connection settings using GRASS default.

Returns
returns DB_OK

Definition at line 55 of file temporal/lib/default_name.c.