db.c File Reference

DBMI Library (client) - open/close driver/database connection. More...

#include <grass/dbmi.h>
#include <grass/glocale.h>
#include "macros.h"
Include dependency graph for db.c:

Go to the source code of this file.

Functions

dbDriver * db_start_driver_open_database (const char *drvname, const char *dbname)
 Open driver/database connection.
int db_close_database_shutdown_driver (dbDriver *driver)
 Close driver/database connection.

Detailed Description

DBMI Library (client) - open/close driver/database connection.

(C) 1999-2009 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 db.c.


Function Documentation

int db_close_database_shutdown_driver ( dbDriver *  driver  ) 

Close driver/database connection.

Parameters:
driver db driver
Returns:
DB_OK or DB_FAILED

Definition at line 62 of file db.c.

References db_close_database(), and db_shutdown_driver().

Referenced by db__copy_table(), db_get_table_number_of_rows(), and db_table_exists().

dbDriver* db_start_driver_open_database ( const char *  drvname,
const char *  dbname 
)

Open driver/database connection.

Parameters:
drvname driver name
dbname database name
Returns:
poiner to dbDriver structure
NULL on failure

Definition at line 28 of file db.c.

References db_init_handle(), db_open_database(), db_set_handle(), db_shutdown_driver(), and db_start_driver().

Referenced by db_table_exists().

Generated on Tue Apr 6 13:27:26 2010 for GRASS Programmer's Manual by  doxygen 1.6.3