NCBI C++ ToolKit
Namespaces | Classes | Macros | Typedefs | Enumerations | Functions
Database Server Public Interfaces
+ Collaboration diagram for Database Server Public Interfaces:

Namespaces

 impl
 

Classes

class  CInterfaceHook< I >
 
class  CDB_Connection
 
class  CDB_Result
 
class  CDB_LangCmd
 
class  CDB_RPCCmd
 
class  CDB_BCPInCmd
 
class  CDB_CursorCmd
 
class  CDB_SendDataCmd
 
class  CDB_BlobDescriptor
 
class  CDB_ResultProcessor
 
class  CAutoTrans
 
class  CAutoTrans::CSubject
 Helper class to allow safe initialization from higher-layer objects. More...
 

Macros

#define DBAPI_TRANSACTION(connection)
 Establish an automatically managed SQL transaction on the specified connection for the duration of the immediately following code block: DBAPI_TRANSACTION(connection) { ... More...
 

Typedefs

typedef CDB_BlobDescriptor CDB_ITDescriptor
 

Enumerations

enum  CDB_BCPInCmd::EBCP_Hints {
  CDB_BCPInCmd::eOrder, CDB_BCPInCmd::eRowsPerBatch, CDB_BCPInCmd::eKilobytesPerBatch, CDB_BCPInCmd::eTabLock,
  CDB_BCPInCmd::eCheckConstraints, CDB_BCPInCmd::eFireTriggers
}
 Type of hint that can be set. More...
 
enum  CDB_BlobDescriptor::ETDescriptorType { CDB_BlobDescriptor::eUnknown, CDB_BlobDescriptor::eText, CDB_BlobDescriptor::eBinary }
 

Functions

 NCBI_DECLARE_INTERFACE_VERSION (I_DriverContext,"xdbapi", 14, 0, 0)
 
CAutoTrans::CSubject DBAPI_MakeTrans (CDB_Connection &connection)
 

Detailed Description

Macro Definition Documentation

#define DBAPI_TRANSACTION (   connection)
Value:
for(ncbi::CAutoTrans auto_trans(ncbi::DBAPI_MakeTrans(connection)); \
auto_trans.Continue(); \
auto_trans.Finish())
CAutoTrans::CSubject DBAPI_MakeTrans(CDB_Connection &connection)
Definition: public.hpp:1046

Establish an automatically managed SQL transaction on the specified connection for the duration of the immediately following code block: DBAPI_TRANSACTION(connection) { ...

}

Automatically COMMIT upon reaching the end of the block normally. Automatically ROLLBACK upon leaving the block early, via a break or return statement or uncaught exception. A client crash or severed connection will trigger an implicit server-side ROLLBACK.

Nested transactions are possible, and will use savepoints for inner transactions so they can fail cleanly (without also canceling outer transactions).

Definition at line 1065 of file public.hpp.

Typedef Documentation

Definition at line 970 of file public.hpp.

Enumeration Type Documentation

Type of hint that can be set.

Enumerator
eOrder 
eRowsPerBatch 
eKilobytesPerBatch 
eTabLock 
eCheckConstraints 
eFireTriggers 

Definition at line 745 of file public.hpp.

Enumerator
eUnknown 
eText 
eBinary 

Definition at line 936 of file public.hpp.

Function Documentation

CAutoTrans::CSubject DBAPI_MakeTrans ( CDB_Connection connection)
inline

Definition at line 1046 of file public.hpp.

NCBI_DECLARE_INTERFACE_VERSION ( I_DriverContext  ,
"xdbapi"  ,
14  ,
,
 
)
Modified on Tue Jul 26 18:34:48 2016 by modify_doxy.py rev. 506947