NCBI C++ ToolKit
Macros | Functions
result.cpp File Reference
#include <ncbi_pch.hpp>
#include <dbapi/driver/ctlib/interfaces.hpp>
#include <dbapi/driver/util/numeric_convert.hpp>
#include <dbapi/error_codes.hpp>
+ Include dependency graph for result.cpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define NCBI_USE_ERRCODE_X   Dbapi_CTlib_Results
 
#define NCBI_DATABASE_THROW(ex_class, message, err_code, severity)
 
#define NCBI_DATABASE_RETHROW(prev_ex, ex_class, message, err_code, severity)
 
#define MAX_VARCHAR_SIZE   1900
 
#define ENSURE_ITEM()
 

Functions

static bool s_CanStore (CS_INT src, EDB_Type dst)
 

Macro Definition Documentation

◆ ENSURE_ITEM

#define ENSURE_ITEM ( )
Value:
if (item_buf == NULL) { \
auto_item.reset(CDB_Object::Create(b_type, maxlength)); \
item_buf = auto_item.get(); \
_ASSERT(item_buf->IsNULL()); \
} else if (is_null) { \
item_buf->AssignNULL(); \
} \
if (is_null) { \
break; \
}
#define NULL
Definition: ncbistd.hpp:225
static CDB_Object * Create(EDB_Type type, size_t size=1)
Definition: types.cpp:556

◆ MAX_VARCHAR_SIZE

#define MAX_VARCHAR_SIZE   1900

Definition at line 58 of file result.cpp.

◆ NCBI_DATABASE_RETHROW

#define NCBI_DATABASE_RETHROW (   prev_ex,
  ex_class,
  message,
  err_code,
  severity 
)
Value:
NCBI_DATABASE_RETHROW_ANNOTATED(prev_ex, ex_class, message, err_code, \
severity, GetDbgInfo(), GetConnection(), GetLastParams())
#define NCBI_DATABASE_RETHROW_ANNOTATED(prev_ex, ex_class, message, err_code, severity, dbg_info, conn, params)
Definition: exception.hpp:735
#define GetDbgInfo()
Definition: result.cpp:55

Definition at line 47 of file result.cpp.

◆ NCBI_DATABASE_THROW

#define NCBI_DATABASE_THROW (   ex_class,
  message,
  err_code,
  severity 
)
Value:
NCBI_DATABASE_THROW_ANNOTATED(ex_class, message, err_code, severity, \
GetDbgInfo(), GetConnection(), GetLastParams())
#define NCBI_DATABASE_THROW_ANNOTATED(ex_class, message, err_code, severity, dbg_info, conn, params)
Definition: exception.hpp:726

Definition at line 44 of file result.cpp.

◆ NCBI_USE_ERRCODE_X

#define NCBI_USE_ERRCODE_X   Dbapi_CTlib_Results

Definition at line 39 of file result.cpp.

Function Documentation

◆ s_CanStore()

static bool s_CanStore ( CS_INT  src,
EDB_Type  dst 
)
static
Modified on Thu Jun 13 17:32:11 2024 by modify_doxy.py rev. 669887