OCILIB (C and C++ Driver for Oracle)
4.7.5
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
|
OcilibCApiPools
OCILIB supports local and global transactions.
Local transactions are implicit within connection objects and there is no specific call or programming step for using it.
In order to control changes made in the database:
OCILIB supports a feature called 'Auto Commit' that performs an implicit and automatic commit call after every execute call
OCILIB supports them by :
Functions | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_Commit (OCI_Connection *con) |
Commit current pending changes. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_Rollback (OCI_Connection *con) |
Cancel current pending changes. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_SetAutoCommit (OCI_Connection *con, boolean enable) |
Enable / disable auto commit mode. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_GetAutoCommit (OCI_Connection *con) |
Get current auto commit mode status. | |
OCI_SYM_PUBLIC OCI_Transaction *OCI_API | OCI_TransactionCreate (OCI_Connection *con, unsigned int timeout, unsigned int mode, OCI_XID *pxid) |
Create a new global transaction or a serializable/read-only local transaction. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_TransactionFree (OCI_Transaction *trans) |
Free current transaction. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_TransactionStart (OCI_Transaction *trans) |
Start global transaction. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_TransactionStop (OCI_Transaction *trans) |
Stop current global transaction. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_TransactionResume (OCI_Transaction *trans) |
Resume a stopped global transaction. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_TransactionPrepare (OCI_Transaction *trans) |
Prepare a global transaction validation. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_TransactionForget (OCI_Transaction *trans) |
Cancel the prepared global transaction validation. | |
OCI_SYM_PUBLIC unsigned int OCI_API | OCI_TransactionGetMode (OCI_Transaction *trans) |
Return global transaction mode. | |
OCI_SYM_PUBLIC unsigned int OCI_API | OCI_TransactionGetTimeout (OCI_Transaction *trans) |
Return global transaction Timeout. | |
OCI_SYM_PUBLIC boolean OCI_API OCI_Commit | ( | OCI_Connection * | con | ) |
#include <api.h>
Commit current pending changes.
con | - Connection handle |
Referenced by ocilib::Connection::Commit().
OCI_SYM_PUBLIC boolean OCI_API OCI_Rollback | ( | OCI_Connection * | con | ) |
#include <api.h>
Cancel current pending changes.
con | - Connection handle |
Referenced by ocilib::Connection::Rollback().
OCI_SYM_PUBLIC boolean OCI_API OCI_SetAutoCommit | ( | OCI_Connection * | con, |
boolean | enable | ||
) |
#include <api.h>
Enable / disable auto commit mode.
The auto commit mode allows commit changes after every executed SQL order
con | - Connection handle |
enable | - Enable (TRUE) or disable (FALSE) |
Referenced by ocilib::Connection::SetAutoCommit().
OCI_SYM_PUBLIC boolean OCI_API OCI_GetAutoCommit | ( | OCI_Connection * | con | ) |
#include <api.h>
Get current auto commit mode status.
con | - Connection handle |
Referenced by ocilib::Connection::GetAutoCommit().
OCI_SYM_PUBLIC OCI_Transaction *OCI_API OCI_TransactionCreate | ( | OCI_Connection * | con, |
unsigned int | timeout, | ||
unsigned int | mode, | ||
OCI_XID * | pxid | ||
) |
#include <api.h>
Create a new global transaction or a serializable/read-only local transaction.
con | - Connection handle |
timeout | - Time that a transaction stays inactive after being stopped |
mode | - Transaction mode |
pxid | - pointer to a global transaction identifier structure |
Referenced by ocilib::Transaction::Transaction().
OCI_SYM_PUBLIC boolean OCI_API OCI_TransactionFree | ( | OCI_Transaction * | trans | ) |
#include <api.h>
Free current transaction.
trans | - Connection handle |
OCI_SYM_PUBLIC boolean OCI_API OCI_TransactionStart | ( | OCI_Transaction * | trans | ) |
#include <api.h>
Start global transaction.
trans | - Connection handle |
Referenced by ocilib::Transaction::Start().
OCI_SYM_PUBLIC boolean OCI_API OCI_TransactionStop | ( | OCI_Transaction * | trans | ) |
#include <api.h>
Stop current global transaction.
trans | - Connection handle |
Referenced by ocilib::Transaction::Stop().
OCI_SYM_PUBLIC boolean OCI_API OCI_TransactionResume | ( | OCI_Transaction * | trans | ) |
#include <api.h>
Resume a stopped global transaction.
trans | - Global transaction handle |
Referenced by ocilib::Transaction::Resume().
OCI_SYM_PUBLIC boolean OCI_API OCI_TransactionPrepare | ( | OCI_Transaction * | trans | ) |
#include <api.h>
Prepare a global transaction validation.
trans | - Global transaction handle |
Referenced by ocilib::Transaction::Prepare().
OCI_SYM_PUBLIC boolean OCI_API OCI_TransactionForget | ( | OCI_Transaction * | trans | ) |
#include <api.h>
Cancel the prepared global transaction validation.
trans | - Global transaction handle |
Referenced by ocilib::Transaction::Forget().
OCI_SYM_PUBLIC unsigned int OCI_API OCI_TransactionGetMode | ( | OCI_Transaction * | trans | ) |
#include <api.h>
Return global transaction mode.
trans | - Global transaction handle |
Referenced by ocilib::Transaction::GetFlags().
OCI_SYM_PUBLIC unsigned int OCI_API OCI_TransactionGetTimeout | ( | OCI_Transaction * | trans | ) |
#include <api.h>
Return global transaction Timeout.
trans | - Global transaction handle |
Referenced by ocilib::Transaction::GetTimeout().