GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
d_execute.c File Reference

DBMI Library (driver) - execute SQL statements. More...

#include <stdlib.h>
#include <grass/dbmi.h>
#include "macros.h"
#include "dbstubs.h"
Include dependency graph for d_execute.c:

Go to the source code of this file.

Functions

int db_d_execute_immediate (void)
 Execute SQL statements. More...
 
int db_d_begin_transaction (void)
 Begin transaction. More...
 
int db_d_commit_transaction ()
 Commit transaction. More...
 

Detailed Description

DBMI Library (driver) - execute SQL statements.

(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 d_execute.c.

Function Documentation

int db_d_begin_transaction ( void  )

Begin transaction.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 56 of file d_execute.c.

References db_driver_begin_transaction, DB_SEND_FAILURE, DB_SEND_SUCCESS, and stat.

int db_d_commit_transaction ( )

Commit transaction.

Parameters
driverdb driver
Returns
DB_OK on success
DB_FAILED on failure

Definition at line 82 of file d_execute.c.

References db_driver_commit_transaction, DB_SEND_FAILURE, DB_SEND_SUCCESS, and stat.

int db_d_execute_immediate ( void  )

Execute SQL statements.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_execute.c.

References db_driver_execute_immediate, db_free_string(), db_init_string(), DB_RECV_STRING, DB_SEND_FAILURE, DB_SEND_SUCCESS, and stat.