GRASS 8 Programmer's Manual 8.6.0dev(2026)-b0a6d7703c
Loading...
Searching...
No Matches
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.
 
int db_d_begin_transaction (void)
 Begin transaction.
 
int db_d_commit_transaction (void)
 Commit transaction.
 

Detailed Description

DBMI Library (driver) - execute SQL statements.

SPDX-FileCopyrightText: 1999-2008 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later

Author
Joel Jones (CERL/UIUC), Radim Blazek

Definition in file d_execute.c.

Function Documentation

◆ db_d_begin_transaction()

int db_d_begin_transaction ( void  )

Begin transaction.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 53 of file d_execute.c.

References db_driver_begin_transaction, DB_OK, DB_SEND_FAILURE, and DB_SEND_SUCCESS.

◆ db_d_commit_transaction()

int db_d_commit_transaction ( void  )

Commit transaction.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 77 of file d_execute.c.

References db_driver_commit_transaction, DB_OK, DB_SEND_FAILURE, and DB_SEND_SUCCESS.

◆ db_d_execute_immediate()

int db_d_execute_immediate ( void  )

Execute SQL statements.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 23 of file d_execute.c.

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