A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/driver_2odbc_2interfaces_8hpp_source.html below:

NCBI C++ ToolKit: include/dbapi/driver/odbc/interfaces.hpp Source File

1 #ifndef DBAPI_DRIVER_ODBC___INTERFACES__HPP 2 #define DBAPI_DRIVER_ODBC___INTERFACES__HPP 47 #if !defined(HAVE_LONG_LONG) && defined(SIZEOF_LONG_LONG) 48 # if SIZEOF_LONG_LONG != 0 49 # define HAVE_LONG_LONG 1 53 #if defined(NCBI_OS_MSWIN) 54 # define HAVE_SQLGETPRIVATEPROFILESTRING 1 57 #if defined(UCS2) && defined(HAVE_WSTRING) 65 #define HAS_DEFERRED_PREPARE 1 73  typedef

wstring::size_type

TStrSize

;

74  typedef wchar_t TChar

;

115

x_PostMsg(ex,

true

);

134

m_DbgInfo->server_name = server_name;

137

m_DbgInfo->username = username;

140

m_DbgInfo->extra_msg = em;

146  void

x_PostMsg(

CDB_Exception

& ex,

bool

always_throw =

false

)

const

;

171  bool

use_dsn =

false

);

223

m_Reporter.ReportError(ex);

234  void

x_AddToRegistry(

void

);

235  void

x_RemoveFromRegistry(

void

);

237  void x_Close

(

bool

delete_conn =

true

);

270  virtual bool

IsAlive(

void

);

272  virtual CDB_LangCmd

* LangCmd (

const string

& lang_query);

273  virtual CDB_RPCCmd

* RPC (

const string

& rpc_name);

276  const string

&

query

,

277  unsigned int

batch_size = 1);

281  bool

dump_results =

true

);

284  bool

log_it =

true

);

286  virtual bool

Refresh(

void

);

297  virtual bool Abort

(

void

);

302  virtual bool

Close(

void

);

304  virtual void

SetTimeout(

size_t

nof_secs);

307  return

m_query_timeout;

309  virtual void

SetCancelTimeout(

size_t

nof_secs);

312  return

m_cancel_timeout;

315  virtual string

GetDriverName(

void

)

const

;

316  virtual string

GetVersionString(

void

)

const

;

320  const CDBParams

* GetLastParams(

void

)

const

;

324  return

m_Reporter.GetDbgInfo();

329

m_Reporter.ReportErrors();

335

m_Reporter.ReportError(ex);

342  static string

x_MakeFreeTDSVersion(

int version

);

344  void

x_SetConnAttributesBefore(

const CODBCContext

& cntx,

406  return

CBaseCmd::GetBindParams();

410  return const_cast<CStatementBase

*

>

(

this

)->CBaseCmd::GetBindParams();

418  int CheckSIE

(

int

rc,

const char

*

msg

,

unsigned int

msg_num)

const

;

419  int CheckSIENd

(

int

rc,

const char

*

msg

,

unsigned int

msg_num)

const

;

421  bool Close

(

void

)

const

;

441  virtual int RowCount

(

void

)

const

;

447  unsigned int

pos)

const

;

485  const string

& lang_query

492  virtual bool Send

(

void

);

493  virtual bool Cancel

(

void

);

496  virtual int RowCount

(

void

)

const

;

500  void

SetCursorName(

const string

& name)

const

;

503  bool

x_AssignParams(

string

&

cmd

,

CMemPot

& bind_guard,

SQLLEN

* indicator);

504  bool

xCheck4MoreResults(

void

);

523  const string

& proc_name);

527  virtual CDBParams

& GetBindParams(

void

);

529  virtual bool

Send(

void

);

530  virtual bool

Cancel(

void

);

532  virtual bool

HasMoreResults(

void

)

const

;

533  virtual int

RowCount(

void

)

const

;

536  bool

x_AssignParams(

string

&

cmd

,

string

& q_exec,

string

& q_select,

538  bool

xCheck4MoreResults(

void

);

558  const string

& cursor_name,

559  const string

&

query

);

563  virtual CDBParams

& GetBindParams(

void

);

564  virtual CDBParams

& GetDefineParams(

void

);

565  virtual int

RowCount(

void

)

const

;

583  const string

& cursor_name,

584  const string

&

query

);

589  virtual bool

Update(

const string

&

table_name

,

const string

& upd_query);

590  virtual bool

UpdateBlob(

unsigned int

item_num,

CDB_Stream

&

data

,

591  bool

log_it =

true

);

594  bool

dump_results =

true

);

595  virtual bool

Delete(

const string

&

table_name

);

596  virtual bool

CloseCursor(

void

);

611  const string

& cursor_name,

612  const string

&

query

);

617  virtual bool

Update(

const string

&

table_name

,

const string

& upd_query);

618  virtual bool

UpdateBlob(

unsigned int

item_num,

CDB_Stream

&

data

,

619  bool

log_it =

true

);

622  bool

dump_results =

true

);

623  virtual bool

Delete(

const string

&

table_name

);

624  virtual bool

CloseCursor(

void

);

659  virtual bool

Bind(

unsigned int

column_num,

CDB_Object

* param_ptr);

660  virtual bool

Send(

void

);

661  virtual bool

CommitBCPTrans(

void

);

662  virtual bool

Cancel(

void

);

663  virtual bool

EndBCP(

void

);

664  virtual int

RowCount(

void

)

const

;

671  bool

x_AssignParams(

void

* p);

672  static int

x_GetBCPDataType(

const CDB_Object

& param);

674  static const void

* x_GetDataTerminator(

const CDB_Object

& param);

675  static size_t

x_GetDataTermSize(

const CDB_Object

& param);

704  virtual size_t

SendChunk(

const void

* chunk_ptr,

size_t

nof_bytes);

705  virtual bool

Cancel(

void

);

707  virtual bool

HasMoreResults(

void

)

const

;

710  void

xCancel(

void

);

711  bool

xCheck4MoreResults(

void

);

747  return

GetStatementBase().GetClientEncoding();

762  virtual bool

Fetch(

void

);

763  virtual int

CurrentItemNo(

void

)

const

;

764  virtual int

GetColumnNum(

void

)

const

;

767  virtual size_t

ReadItem(

void

*

buffer

,

size_t

buffer_size,

771  virtual bool

SkipItem(

void

);

783  return

GetStatementBase().GetHandle();

787

GetStatementBase().ReportErrors();

793

GetStatementBase().ReportError(ex);

798  return

GetStatementBase().GetDbgInfo();

803  return

m_Stmt.GetLastParams();

807  return

GetStatementBase().GetConnection();

811

GetStatementBase().Close();

824  enum

{eODBC_Column_Name_Size = 80};

890  virtual bool

Fetch(

void

);

891  virtual int

CurrentItemNo(

void

)

const

;

892  virtual int

GetColumnNum(

void

)

const

;

895  virtual size_t

ReadItem(

void

*

buffer

,

size_t

buffer_size,

898  virtual bool

SkipItem(

void

);

903  return m_Cmd

->GetDbgInfo();

923  m_Cmd

->ReportError(ex);

943  virtual bool

Fetch(

void

);

946 #define NCBI_ODBC_THROW(ex_class, message, err_code, severity) \ 948  ex_class ex(DIAG_COMPILE_INFO, NULL, (message), severity, err_code); \ 951 #define NCBI_ODBC_RETHROW(prev_ex, ex_class, message, err_code, severity) \ 953  ex_class ex(DIAG_COMPILE_INFO, &(prev_ex), (message), severity, \

SQLHENV GetODBCContext(void) const

virtual bool IsAbleTo(ECapability cpb) const

Check if a driver is acle to provide necessary functionality.

CODBC_Reporter m_Reporter

bool GetUseDSN(void) const

int GetTDSVersion(void) const

CODBCContextRegistry * m_Registry

const CODBC_Reporter & GetReporter(void) const

void ReportError(CDB_Exception &ex) const

SQLUINTEGER GetPacketSize(void) const

SQLHDBC GetHandle(void) const

friend class CODBC_RPCCmd

size_t GetCancelTimeout() const

void ReportError(CDB_Exception &ex) const

friend class CODBC_CursorCmdExpl

virtual CDB_SendDataCmd * SendDataCmd(I_BlobDescriptor &desc, size_t data_size, bool log_it=true, bool dump_results=true)

"Send-data" command

friend class CODBC_BCPInCmd

friend class CODBC_SendDataCmd

const TDbgInfo & GetDbgInfo(void) const

CODBC_Reporter m_Reporter

CStatementBase * m_ActiveStmt

const CDBParams * GetLastParams(void) const

size_t GetTimeout() const

friend class CODBC_CursorCmd

virtual CDBParams & GetDefineParams(void)

Get meta-information about defined parameters.

unique_ptr< impl::CResult > m_Res

virtual int RowCount(void) const

Get the number of rows affected by the command Special case: negative on error or if there is no way ...

unique_ptr< CODBC_LangCmd > m_LCmd

virtual bool CloseCursor(void)

Close the cursor.

CDB_Result * GetCDBResultPtr(void) const

CDB_Result & GetCDBResult(void)

void SetCDBResultPtr(CDB_Result *res)

void ReportError(CDB_Exception &ex) const

const CODBC_Connection::TDbgInfo & GetDbgInfo(void) const

unique_ptr< CDBParams > m_InParams

void SetHandlerStack(impl::CDBHandlerStack &hs)

void SetServerName(const string &server_name)

void ReportErrors(void) const

CRef< TDbgInfo > m_DbgInfo

void SetHandleType(SQLSMALLINT ht)

CDB_Exception::SContext TDbgInfo

const impl::CDBHandlerStack * m_HStack

void ReportError(CDB_Exception &ex) const

void SetHandle(SQLHANDLE h)

const TDbgInfo & GetDbgInfo(void) const

void SetUserName(const string &username)

const CODBC_Connection * m_Connection

void SetExtraMsg(const string &em)

CStatementBase & GetStatementBase(void)

void ReportError(CDB_Exception &ex) const

SQLLEN *const m_RowCountPtr

const CODBC_Connection::TDbgInfo & GetDbgInfo(void) const

const CDBParams * GetLastParams(void) const

SQLHSTMT GetHandle(void) const

const CStatementBase & GetStatementBase(void) const

EEncoding GetClientEncoding(void) const

AutoPtr< char, ArrayDeleter< char > > TItemBuffer

const CODBC_Connection & GetConnection(void) const

SODBC_ColDescr * m_ColFmt

const CDB_BlobDescriptor::ETDescriptorType m_DescrType

const CODBC_Connection::TDbgInfo & GetDbgInfo(void) const

bool CheckRC(int rc) const

void ReportError(CDB_Exception &ex) const

bool x_BindParam_ODBC(const CDB_Object &param, CMemPot &bind_guard, SQLLEN *indicator_base, unsigned int pos) const

virtual int RowCount(void) const

Get the number of rows affected by the command Special case: negative on error or if there is no way ...

CODBC_Reporter m_Reporter

bool IsMultibyteClientEncoding(void) const

SQLULEN x_GetMaxDataSize(const CDB_Object &param) const

string Type2String(const CDB_Object &param) const

SQLHSTMT GetHandle(void) const

CDBParams & GetBindParams(void)

Binding.

SQLSMALLINT x_GetCType(const CDB_Object &param) const

SQLLEN x_GetIndicator(const CDB_Object &param) const

const CODBC_Connection & GetConnection(void) const

SQLLEN x_GetCurDataSize(const CDB_Object &param) const

CStatementBase(CODBC_Connection &conn, const string &query)

int CheckSIE(int rc, const char *msg, unsigned int msg_num) const

bool ResetParams(void) const

EEncoding GetClientEncoding(void) const

SQLSMALLINT x_GetSQLType(const CDB_Object &param) const

void SetDbgInfo(const string &msg)

CODBC_Connection & GetConnection(void)

int CheckSIENd(int rc, const char *msg, unsigned int msg_num) const

SQLPOINTER x_GetData(const CDB_Object &param, CMemPot &bind_guard) const

void ReportErrors(void) const

const CDBParams & GetBindParams(void) const

virtual CDB_Result * Result(void)

Get result set.

const CDBParams * GetLastParams(void) const

virtual bool Cancel(void)

Cancel the command execution.

virtual bool HasMoreResults(void) const

virtual bool Send(void)

Send command to the server.

impl::CConnection & GetConnImpl(void) const

bool IsMultibyteClientEncoding(void) const

EEncoding GetClientEncoding(void) const

string::size_type TStrSize

static CS_CONNECTION * conn

struct parameters_t * pb[]

static const char table_name[]

ECapability

Report if the driver supports this functionality.

EDB_ResType

EDB_ResType::

virtual string GetDriverName(void) const

NCBI_XNCBI_EXPORT void Abort(void)

Smart abort function.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define END_SCOPE(ns)

End the previously defined scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

#define BEGIN_SCOPE(ns)

Define a new scope.

#define NCBI_DBAPIDRIVER_ODBC_EXPORT

const string version

version string

const struct ncbi::grid::netcache::search::fields::SIZE size

static void x_Close(SHttpConnector *uuu)

void ReportErrors(TReply r)

static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)

SQLRETURN SQLFreeStmt(SQLHSTMT StatementHandle, SQLUSMALLINT Option)

unsigned long SQLUINTEGER

signed short int SQLSMALLINT

SQLSMALLINT DecimalDigits


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4