GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
start.c File Reference

DBMI Library (client) - open database connection. More...

#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <grass/spawn.h>
#include <grass/dbmi.h>
Include dependency graph for start.c:

Go to the source code of this file.

Macros

#define READ   0
 
#define WRITE   1
 

Functions

dbDriverdb_start_driver (const char *name)
 Initialize a new dbDriver for db transaction. More...
 

Detailed Description

DBMI Library (client) - open database connection.

(C) 1999-2008 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Joel Jones (CERL/UIUC), Radim Blazek

Definition in file start.c.

Macro Definition Documentation

◆ READ

#define READ   0

Definition at line 28 of file start.c.

◆ WRITE

#define WRITE   1

Definition at line 29 of file start.c.

Function Documentation

◆ db_start_driver()

dbDriver* db_start_driver ( const char *  name)

Initialize a new dbDriver for db transaction.

If name is NULL, the db name will be assigned connection.driverName.

Parameters
namedriver name
Returns
pointer to dbDriver structure
NULL on error

Definition at line 51 of file start.c.

References driver, and list.

Referenced by db_start_driver_open_database().