GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
db/dbmi_client/handler.c File Reference

DBMI Library (client) - standard error handlers. More...

#include <grass/gis.h>
#include <grass/dbmi.h>
Include dependency graph for db/dbmi_client/handler.c:

Go to the source code of this file.

Functions

void db_set_error_handler_driver (dbDriver *driver)
 Define standard error handler for open database connection. More...
 
void db_unset_error_handler_driver (dbDriver *driver)
 Remove error handler before closing the driver. More...
 

Detailed Description

DBMI Library (client) - standard error handlers.

(C) 2013 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
Martin Landa <landa.martin gmail.com>

Definition in file db/dbmi_client/handler.c.

Function Documentation

◆ db_set_error_handler_driver()

void db_set_error_handler_driver ( dbDriver driver)

Define standard error handler for open database connection.

This handler:

  • close database connection
  • shutdown db driver

Note: It's recommended to call this routine after db_start_driver_open_database().

Parameters
driverDB driver

Definition at line 38 of file db/dbmi_client/handler.c.

References G_add_error_handler().

◆ db_unset_error_handler_driver()

void db_unset_error_handler_driver ( dbDriver driver)

Remove error handler before closing the driver.

Parameters
driverDB driver

Definition at line 48 of file db/dbmi_client/handler.c.

References G_remove_error_handler().

Referenced by db_shutdown_driver().