GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
connect.c File Reference
#include <grass/gis.h>
#include <grass/dbmi.h>
Include dependency graph for connect.c:

Go to the source code of this file.

Functions

int db_set_connection (dbConnection *connection)
 set default db connection settings More...
 
int db_get_connection (dbConnection *connection)
 get default db connection settings More...
 

Function Documentation

int db_get_connection ( dbConnection *  connection)

get default db connection settings

Returns
DB_OK
Parameters
dbConnection

Definition at line 49 of file connect.c.

References G__getenv2().

Referenced by db_set_default_connection(), db_start_driver(), and Vect_default_field_info().

int db_set_connection ( dbConnection *  connection)

set default db connection settings

Returns
DB_OK
Parameters
dbConnection

Definition at line 10 of file connect.c.

References G_setenv2().

Referenced by db_set_default_connection().