NCBI C++ ToolKit
Macros | Functions
connection.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbiapp.hpp>
#include <dbapi/driver/odbc/interfaces.hpp>
#include <dbapi/driver/types.hpp>
#include <dbapi/error_codes.hpp>
#include <stdio.h>
#include <string.h>
#include "odbc_utils.hpp"
+ Include dependency graph for connection.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define DEFAULT_ODBC_DRIVER_NAME   "ODBC Driver 18 for SQL Server"
 
#define NCBI_USE_ERRCODE_X   Dbapi_Odbc_Conn
 
#define NCBI_DATABASE_THROW(ex_class, message, err_code, severity)    NCBI_ODBC_THROW(ex_class, message, err_code, severity)
 
#define GetDbgInfo()   0
 

Functions

bool IsBCPCapable (void)
 
static bool ODBC_xSendDataPrepare (CStatementBase &stmt, CDB_BlobDescriptor &descr_in, SQLLEN size, bool is_text, bool logit, SQLPOINTER id, SQLLEN *ph)
 
static bool ODBC_xSendDataGetId (CStatementBase &stmt, SQLPOINTER *id)
 
static bool ODBC_xCheckSIE (int rc, CStatementBase &stmt)
 

Macro Definition Documentation

◆ DEFAULT_ODBC_DRIVER_NAME

#define DEFAULT_ODBC_DRIVER_NAME   "ODBC Driver 18 for SQL Server"

Definition at line 48 of file connection.cpp.

◆ GetDbgInfo

#define GetDbgInfo ( )    0

Definition at line 62 of file connection.cpp.

◆ NCBI_DATABASE_THROW

#define NCBI_DATABASE_THROW (   ex_class,
  message,
  err_code,
  severity 
)     NCBI_ODBC_THROW(ex_class, message, err_code, severity)

Definition at line 53 of file connection.cpp.

◆ NCBI_USE_ERRCODE_X

#define NCBI_USE_ERRCODE_X   Dbapi_Odbc_Conn

Definition at line 50 of file connection.cpp.

Function Documentation

◆ IsBCPCapable()

bool IsBCPCapable ( void  )

Definition at line 66 of file connection.cpp.

◆ ODBC_xCheckSIE()

static bool ODBC_xCheckSIE ( int  rc,
CStatementBase stmt 
)
static

Definition at line 553 of file connection.cpp.

References SQL_ERROR, SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, and stmt.

Referenced by ODBC_xSendDataPrepare().

◆ ODBC_xSendDataGetId()

static bool ODBC_xSendDataGetId ( CStatementBase stmt,
SQLPOINTER id 
)
static

◆ ODBC_xSendDataPrepare()

static bool ODBC_xSendDataPrepare ( CStatementBase stmt,
CDB_BlobDescriptor descr_in,
SQLLEN  size,
bool  is_text,
bool  logit,
SQLPOINTER  id,
SQLLEN ph 
)
static
Modified on Thu Feb 22 17:12:50 2024 by modify_doxy.py rev. 669887