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/group__DbInterfaces.html below:

NCBI C++ ToolKit: Database Server Interfaces

enum   CDBParamVariant::ENameFormat {
  CDBParamVariant::ePlainName , CDBParamVariant::eQMarkName , CDBParamVariant::eNumericName , CDBParamVariant::eNamedName ,
  CDBParamVariant::eFormatName , CDBParamVariant::eSQLServerName
}   enum   CDBParams::EDirection { CDBParams::eIn , CDBParams::eOut , CDBParams::eInOut }   enum   CDBConnParams::EServerType {
  CDBConnParams::eUnknown , CDBConnParams::eMySQL , CDBConnParams::eSybaseOpenServer , CDBConnParams::eSybaseSQLServer ,
  CDBConnParams::eMSSqlServer
}   enum   EDB_ResType {
  eDB_RowResult , eDB_ParamResult , eDB_ComputeResult , eDB_StatusResult ,
  eDB_CursorResult
}   EDB_ResType:: More...
  enum   I_Result::EGetItem { I_Result::eAppendLOB , I_Result::eAssignLOB }   enum   I_DriverContext::EConnectionMode { I_DriverContext::fBcpIn = 0x1 , I_DriverContext::fPasswordEncrypted = 0x2 , I_DriverContext::fDoNotConnect = 0x4 }   Connection mode. More...
  enum   I_DriverContext::ECapability { I_DriverContext::eBcp , I_DriverContext::eReturnBlobDescriptors , I_DriverContext::eReturnITDescriptors = eReturnBlobDescriptors , I_DriverContext::eReturnComputeResults }   Report if the driver supports this functionality. More...
    CDBParamVariant::CDBParamVariant (int pos)     CDBParamVariant::CDBParamVariant (unsigned int pos)     CDBParamVariant::CDBParamVariant (const char *name)     CDBParamVariant::CDBParamVariant (const string &name)     CDBParamVariant::~CDBParamVariant (void)   bool  CDBParamVariant::IsPositional (void) const   unsigned int  CDBParamVariant::GetPosition (void) const   ENameFormat  CDBParamVariant::GetFormat (void) const   const stringCDBParamVariant::GetName (void) const   string  CDBParamVariant::GetName (ENameFormat format) const   static string  CDBParamVariant::MakePlainName (const CTempString &name)   static CTempString  CDBParamVariant::MakeName (const CTempString &name, ENameFormat &format)   virtual  CDBParams::~CDBParams (void)   virtual unsigned int  CDBParams::GetNum (void) const =0   Get total number of columns in resultset. More...
  virtual const stringCDBParams::GetName (const CDBParamVariant &param, CDBParamVariant::ENameFormat format=CDBParamVariant::eSQLServerName) const =0   Get name of column. More...
  virtual unsigned int  CDBParams::GetIndex (const CDBParamVariant &param) const =0   virtual size_t  CDBParams::GetMaxSize (const CDBParamVariant &param) const =0   Get maximum size in bytes for column. More...
  virtual EDB_Type  CDBParams::GetDataType (const CDBParamVariant &param) const =0   Get data type for column in the resultset. More...
  virtual const CDB_ObjectCDBParams::GetValue (const CDBParamVariant &param) const =0   Get value of column. More...
  virtual EDirection  CDBParams::GetDirection (const CDBParamVariant &param) const =0   Get parameter's direction (in/out/inout). More...
  virtual CDBParamsCDBParams::Bind (const CDBParamVariant &param, CDB_Object *value, bool out_param=false)   This method stores pointer to data. More...
  virtual CDBParamsCDBParams::Set (const CDBParamVariant &param, CDB_Object *value, bool out_param=false)   This method stores copy of data. More...
  virtual CDBParamsCDBParams::SemiShallowClone (void) const =0   Yield a lightweight copy of these parameters, sharing representations for variable-length datatypes. More...
    CDBConnParams::CDBConnParams (void)   virtual  CDBConnParams::~CDBConnParams (void)   virtual string  CDBConnParams::GetDriverName (void) const =0   virtual Uint4  CDBConnParams::GetProtocolVersion (void) const =0   virtual EEncoding  CDBConnParams::GetEncoding (void) const =0   virtual string  CDBConnParams::GetServerName (void) const =0   virtual string  CDBConnParams::GetDatabaseName (void) const =0   virtual string  CDBConnParams::GetUserName (void) const =0   virtual string  CDBConnParams::GetPassword (void) const =0   virtual EServerType  CDBConnParams::GetServerType (void) const =0   virtual Uint4  CDBConnParams::GetHost (void) const =0   virtual Uint2  CDBConnParams::GetPort (void) const =0   virtual CRef< IConnValidatorCDBConnParams::GetConnValidator (void) const =0   virtual const impl::CDBHandlerStackCDBConnParams::GetOpeningMsgHandlers (void) const =0   virtual string  CDBConnParams::GetParam (const string &key) const =0   Parameters, which are not listed above explicitly, should be retrieved via SetParam() method. More...
  void  CDBConnParams::SetChildObj (const CDBConnParams &child_obj) const   void  CDBConnParams::ReleaseChildObj (void) const   const CDBConnParamsCDBConnParams::GetThis (void) const     CDBConnParams::CDBConnParams (const CDBConnParams &other)   CDBConnParamsCDBConnParams::operator= (const CDBConnParams &other)     CDBConnParamsDelegate::CDBConnParamsDelegate (const CDBConnParams &other)   virtual  CDBConnParamsDelegate::~CDBConnParamsDelegate (void)   virtual string  CDBConnParamsDelegate::GetDriverName (void) const   virtual Uint4  CDBConnParamsDelegate::GetProtocolVersion (void) const   virtual EEncoding  CDBConnParamsDelegate::GetEncoding (void) const   virtual string  CDBConnParamsDelegate::GetServerName (void) const   virtual string  CDBConnParamsDelegate::GetDatabaseName (void) const   virtual string  CDBConnParamsDelegate::GetUserName (void) const   virtual string  CDBConnParamsDelegate::GetPassword (void) const   virtual EServerType  CDBConnParamsDelegate::GetServerType (void) const   virtual Uint4  CDBConnParamsDelegate::GetHost (void) const   virtual Uint2  CDBConnParamsDelegate::GetPort (void) const   virtual CRef< IConnValidatorCDBConnParamsDelegate::GetConnValidator (void) const   virtual const impl::CDBHandlerStackCDBConnParamsDelegate::GetOpeningMsgHandlers (void) const   virtual string  CDBConnParamsDelegate::GetParam (const string &key) const   Parameters, which are not listed above explicitly, should be retrieved via SetParam() method. More...
    CDBConnParamsDelegate::CDBConnParamsDelegate (const CDBConnParamsDelegate &other)   CDBConnParamsDelegateCDBConnParamsDelegate::operator= (const CDBConnParamsDelegate &other)   virtual int  I_BlobDescriptor::DescriptorType (void) const =0   virtual  I_BlobDescriptor::~I_BlobDescriptor (void)     CParamStmt::CParamStmt (void)   virtual  CParamStmt::~CParamStmt (void)   virtual CDBParamsCParamStmt::GetBindParams (void)=0   Get meta-information about binded parameters. More...
    CParamRecordset::CParamRecordset (void)   virtual  CParamRecordset::~CParamRecordset (void)   virtual CDBParamsCParamRecordset::GetDefineParams (void)=0   Get meta-information about defined parameters. More...
    I_BaseCmd::I_BaseCmd (void)   virtual  I_BaseCmd::~I_BaseCmd (void)   virtual bool  I_BaseCmd::Send (void)=0   Send command to the server. More...
  virtual bool  I_BaseCmd::WasSent (void) const =0   Implementation-specific. More...
  virtual bool  I_BaseCmd::Cancel (void)=0   Cancel the command execution. More...
  virtual bool  I_BaseCmd::WasCanceled (void) const =0   Implementation-specific. More...
  virtual CDB_ResultI_BaseCmd::Result (void)=0   Get result set. More...
  virtual bool  I_BaseCmd::HasMoreResults (void) const =0   virtual bool  I_BaseCmd::HasFailed (void) const =0   virtual int  I_BaseCmd::RowCount (void) const =0   Get the number of rows affected by the command Special case: negative on error or if there is no way that this command could ever affect any rows (like PRINT). More...
  virtual void  I_BaseCmd::DumpResults (void)=0   Dump the results of the command if result processor is installed for this connection, it will be called for each result set. More...
    I_LangCmd::I_LangCmd (void)   virtual  I_LangCmd::~I_LangCmd (void)   virtual bool  I_LangCmd::More (const string &query_text)=0   Add more text to the language command. More...
    I_RPCCmd::I_RPCCmd (void)   virtual  I_RPCCmd::~I_RPCCmd (void)   virtual void  I_RPCCmd::SetRecompile (bool recompile=true)=0   Set the "recompile before execute" flag for the stored proc Implementation-specific. More...
  virtual const stringI_RPCCmd::GetProcName (void) const =0   Get a name of the procedure. More...
    I_BCPInCmd::I_BCPInCmd (void)   virtual  I_BCPInCmd::~I_BCPInCmd (void)   virtual bool  I_BCPInCmd::SendRow (void)=0   Send row to the server. More...
  virtual bool  I_BCPInCmd::CompleteBatch (void)=0   Complete batch – to store all rows transferred by far in this batch into the table. More...
  virtual bool  I_BCPInCmd::Cancel (void)=0   Cancel the BCP command. More...
  virtual bool  I_BCPInCmd::CompleteBCP (void)=0   Complete the BCP and store all rows transferred in last batch into the table. More...
    I_CursorCmd::I_CursorCmd (void)   virtual  I_CursorCmd::~I_CursorCmd (void)   virtual CDB_ResultI_CursorCmd::Open (void)=0   Open the cursor. More...
  virtual bool  I_CursorCmd::Update (const string &table_name, const string &upd_query)=0   Update the last fetched row. More...
  virtual bool  I_CursorCmd::UpdateBlob (unsigned int item_num, CDB_Stream &data, bool log_it=true)=0   bool  I_CursorCmd::UpdateTextImage (unsigned int item_num, CDB_Stream &data, bool log_it=true)   virtual CDB_SendDataCmdI_CursorCmd::SendDataCmd (unsigned int item_num, size_t size, bool log_it=true, bool discard_results=true)=0   Create send-data command. More...
  virtual bool  I_CursorCmd::Delete (const string &table_name)=0   Delete the last fetched row. More...
  virtual int  I_CursorCmd::RowCount (void) const =0   Get the number of fetched rows Special case: negative on error or if there is no way that this command could ever affect any rows (like PRINT). More...
  virtual bool  I_CursorCmd::Close (void)=0   Close the cursor. More...
    I_SendDataCmd::I_SendDataCmd (void)   virtual  I_SendDataCmd::~I_SendDataCmd (void)   virtual size_t  I_SendDataCmd::SendChunk (const void *pChunk, size_t nofBytes)=0   Send chunk of data to the server. More...
  virtual bool  I_SendDataCmd::Cancel (void)=0     I_Result::I_Result (void)   virtual  I_Result::~I_Result (void)   virtual EDB_ResType  I_Result::ResultType (void) const =0   Get type of the result. More...
  virtual const CDBParamsI_Result::GetDefineParams (void) const =0   Get meta-information about rows in resultset. More...
  virtual unsigned int  I_Result::NofItems (void) const =0   Get # of items (columns) in the result. More...
  virtual const char *  I_Result::ItemName (unsigned int item_num) const =0   Get name of a result item. More...
  virtual size_t  I_Result::ItemMaxSize (unsigned int item_num) const =0   Get size (in bytes) of a result item. More...
  virtual EDB_Type  I_Result::ItemDataType (unsigned int item_num) const =0   Get datatype of a result item. More...
  virtual bool  I_Result::Fetch (void)=0   Fetch next row. More...
  virtual int  I_Result::CurrentItemNo (void) const =0   Return current item number we can retrieve (0,1,...) More...
  virtual int  I_Result::GetColumnNum (void) const =0   Return number of columns in the recordset. More...
  virtual CDB_ObjectI_Result::GetItem (CDB_Object *item_buf=0, EGetItem policy=eAppendLOB)=0   Get a result item (you can use either GetItem or ReadItem). More...
  virtual size_t  I_Result::ReadItem (void *buffer, size_t buffer_size, bool *is_null=0)=0   Read a result item body (for BLOB columns, mostly). More...
  virtual I_BlobDescriptorI_Result::GetBlobDescriptor (void)=0   Get a descriptor for a BLOB column (for SendData). More...
  I_BlobDescriptorI_Result::GetImageOrTextDescriptor (void)   virtual bool  I_Result::SkipItem (void)=0   Skip result item. More...
  typedef  NCBI_PARAM_TYPE (dbapi, conn_use_encrypt_data) TDbapi_ConnUseEncryptData     I_DriverContext::I_DriverContext (void)   virtual  I_DriverContext::~I_DriverContext (void)   virtual bool  I_DriverContext::SetLoginTimeout (unsigned int nof_secs=0)=0   Set login timeout. More...
  virtual bool  I_DriverContext::SetTimeout (unsigned int nof_secs=0)=0   Set connection timeout. More...
  virtual unsigned int  I_DriverContext::GetLoginTimeout (void) const =0   Get login timeout. More...
  virtual unsigned int  I_DriverContext::GetTimeout (void) const =0   Get connection timeout. More...
  virtual bool  I_DriverContext::SetMaxBlobSize (size_t nof_bytes)=0   Set maximal size for BLOB data. More...
  bool  I_DriverContext::SetMaxTextImageSize (size_t n)   CDB_ConnectionI_DriverContext::Connect (const string &srv_name, const string &user_name, const string &passwd, TConnectionMode mode, bool reusable=false, const string &pool_name=kEmptyStr)   Create new connection to specified server (or service) within this context. More...
  CDB_ConnectionI_DriverContext::ConnectValidated (const string &srv_name, const string &user_name, const string &passwd, IConnValidator &validator, TConnectionMode mode=0, bool reusable=false, const string &pool_name=kEmptyStr)   Create new connection to specified server (within this context). More...
  virtual CDB_ConnectionI_DriverContext::MakeConnection (const CDBConnParams &params)=0   Create connection object using Load Balancer / connection factory. More...
  virtual unsigned int  I_DriverContext::NofConnections (const string &srv_name="", const string &pool_name="") const =0   Return number of currently open connections in this context. More...
  virtual unsigned int  I_DriverContext::NofConnections (const TSvrRef &svr_ref, const string &pool_name="") const =0   virtual void  I_DriverContext::PushCntxMsgHandler (CDB_UserHandler *h, EOwnership ownership=eNoOwnership)=0   Add message handler "h" to process 'context-wide' (not bound to any particular connection) error messages. More...
  virtual void  I_DriverContext::PopCntxMsgHandler (CDB_UserHandler *h)=0   Remove message handler "h" and all handlers above it in the stack. More...
  virtual void  I_DriverContext::PushDefConnMsgHandler (CDB_UserHandler *h, EOwnership ownership=eNoOwnership)=0   Add `per-connection' err.message handler "h" to the stack of default handlers which are inherited by all newly created connections. More...
  virtual void  I_DriverContext::PopDefConnMsgHandler (CDB_UserHandler *h)=0   Remove `per-connection' mess. More...
  virtual bool  I_DriverContext::IsAbleTo (ECapability cpb) const =0   Check if a driver is acle to provide necessary functionality. More...
  virtual void  I_DriverContext::CloseUnusedConnections (const string &srv_name=kEmptyStr, const string &pool_name=kEmptyStr, unsigned int max_closings=kMax_UInt)=0   Close reusable deleted connections for specified server and/or pool. More...
  virtual void  I_DriverContext::SetApplicationName (const string &app_name)=0   Set application name. More...
  virtual string  I_DriverContext::GetApplicationName (void) const =0   Return application name. More...
  virtual void  I_DriverContext::InitApplicationName (void)   Explicitly auto-initialize the application name, if necessary. More...
  virtual void  I_DriverContext::SetHostName (const string &host_name)=0   Set host name. More...
  virtual string  I_DriverContext::GetHostName (void) const =0   Get host name. More...
  virtual string  I_DriverContext::GetDriverName (void) const   virtual CDB_ConnectionI_DriverContext::MakePooledConnection (const CDBConnParams &params)=0   Create connection object WITHOUT using of Load Balancer / connection factory. More...
    I_Connection::I_Connection (void)   virtual  I_Connection::~I_Connection (void)   virtual bool  I_Connection::IsAlive (void)=0   Check out if connection is alive. More...
  virtual CDB_LangCmdI_Connection::LangCmd (const string &lang_query)=0   These methods: LangCmd(), RPC(), BCPIn(), Cursor() and SendDataCmd() create and return a "command" object, register it for later use with this (and only this!) connection. More...
  virtual CDB_RPCCmdI_Connection::RPC (const string &rpc_name)=0   Remote procedure call. More...
  virtual CDB_BCPInCmdI_Connection::BCPIn (const string &table_name)=0   "Bulk copy in" command More...
  virtual CDB_CursorCmdI_Connection::Cursor (const string &cursor_name, const string &query, unsigned int batch_size)=0   Cursor. More...
  CDB_CursorCmdI_Connection::Cursor (const string &cursor_name, const string &query)   virtual CDB_SendDataCmdI_Connection::SendDataCmd (I_BlobDescriptor &desc, size_t data_size, bool log_it=true, bool discard_results=true)=0   Create send-data command. More...
  virtual bool  I_Connection::SendData (I_BlobDescriptor &desc, CDB_Stream &lob, bool log_it=true)=0   Shortcut to send text and image to the server without using the "Send-data" command (SendDataCmd) More...
  virtual bool  I_Connection::Refresh (void)=0   Reset the connection to the "ready" state (cancel all active commands) More...
  virtual const stringI_Connection::ServerName (void) const =0   Get the server name. More...
  virtual const stringI_Connection::UserName (void) const =0   Get the user user. More...
  virtual const stringI_Connection::Password (void) const =0   Get the password. More...
  virtual const stringI_Connection::DatabaseName (void) const =0   Get the database name. More...
  virtual I_DriverContext::TConnectionMode  I_Connection::ConnectMode (void) const =0   Get the bitmask for the connection mode (BCP, secure login, ...) More...
  virtual bool  I_Connection::IsReusable (void) const =0   Check if this connection is a reusable one. More...
  virtual const stringI_Connection::PoolName (void) const =0   Find out which connection pool this connection belongs to. More...
  virtual I_DriverContextI_Connection::Context (void) const =0   Get pointer to the driver context. More...
  virtual void  I_Connection::PushMsgHandler (CDB_UserHandler *h, EOwnership ownership=eNoOwnership)=0   Put the message handler into message handler stack. More...
  virtual void  I_Connection::PopMsgHandler (CDB_UserHandler *h)=0   Remove the message handler (and all above it) from the stack. More...
  virtual CDB_ResultProcessorI_Connection::SetResultProcessor (CDB_ResultProcessor *rp)=0   Set new result-processor. More...
  virtual bool  I_Connection::Abort (void)=0   Abort the connection. More...
  virtual bool  I_Connection::Close (void)=0   Close an open connection. More...
  virtual void  I_Connection::SetTimeout (size_t nof_secs)=0   Set connection timeout. More...
  virtual size_t  I_Connection::GetTimeout (void) const =0   Get connection timeout. More...
  virtual I_ConnectionExtraI_Connection::GetExtraFeatures (void)=0   Get interface for extra features that could be implemented in the driver. More...
  virtual string  I_Connection::GetVersionString (void) const   Driver version, supplied here rather than by the context for ODBC's sake. More...
  CDB_LangCmdI_Connection::LangCmd (const string &lang_query, unsigned int)   CDB_RPCCmdI_Connection::RPC (const string &rpc_name, unsigned int)   CDB_BCPInCmdI_Connection::BCPIn (const string &table_name, unsigned int)   CDB_CursorCmdI_Connection::Cursor (const string &cursor_name, const string &query, unsigned int, unsigned int batch_size)   ◆ I_ITDescriptor ◆ TConnectionMode ◆ ECapability

Report if the driver supports this functionality.

Enumerator eBcp  eReturnBlobDescriptors  eReturnITDescriptors  eReturnComputeResults 

Definition at line 1080 of file interfaces.hpp.

◆ EConnectionMode

Connection mode.

Enumerator fBcpIn  fPasswordEncrypted  fDoNotConnect 

Definition at line 812 of file interfaces.hpp.

◆ EDB_ResType

EDB_ResType::

Type of result set

Enumerator eDB_RowResult  eDB_ParamResult  eDB_ComputeResult  eDB_StatusResult  eDB_CursorResult 

Definition at line 386 of file interfaces.hpp.

◆ EDirection ◆ EGetItem ◆ ENameFormat Enumerator ePlainName  eQMarkName  eNumericName  eNamedName  eFormatName  eSQLServerName 

Definition at line 98 of file interfaces.hpp.

◆ EServerType Enumerator eUnknown  eMySQL  eSybaseOpenServer  eSybaseSQLServer  eMSSqlServer 

Definition at line 264 of file interfaces.hpp.

◆ Abort() virtual bool I_Connection::Abort ( void  ) protectedpure virtual

Abort the connection.

Returns
TRUE - if succeeded, FALSE if not
Note
Attention: it is not recommended to use this method unless you absolutely have to. The expected implementation is - close underlying file descriptor[s] without destroing any objects associated with a connection.
See also
Close

Implemented in CDB_Connection.

◆ BCPIn() [1/2] ◆ BCPIn() [2/2] ◆ Bind() ◆ Cancel() [1/3] virtual bool I_BaseCmd::Cancel ( void  ) pure virtual ◆ Cancel() [2/3] virtual bool I_BCPInCmd::Cancel ( void  ) protectedpure virtual ◆ Cancel() [3/3] virtual bool I_SendDataCmd::Cancel ( void  ) protectedpure virtual

Implemented in CDB_SendDataCmd.

◆ CDBConnParams() [1/2] ◆ CDBConnParams() [2/2] CDBConnParams::CDBConnParams ( void  )

Definition at line 42 of file interfaces.cpp.

◆ CDBConnParamsDelegate() [1/2] ◆ CDBConnParamsDelegate() [2/2] ◆ CDBParamVariant() [1/4] CDBParamVariant::CDBParamVariant ( const char *  name )

Definition at line 108 of file public.cpp.

◆ CDBParamVariant() [2/4] ◆ CDBParamVariant() [3/4] CDBParamVariant::CDBParamVariant ( int  pos )

Definition at line 94 of file public.cpp.

◆ CDBParamVariant() [4/4] CDBParamVariant::CDBParamVariant ( unsigned int  pos )

Definition at line 101 of file public.cpp.

◆ Close() [1/2] virtual bool I_CursorCmd::Close ( void  ) protectedpure virtual

Close the cursor.

Return FALSE if the cursor is closed already (or not opened yet)

Implemented in CDB_CursorCmd.

◆ Close() [2/2] virtual bool I_Connection::Close ( void  ) protectedpure virtual

Close an open connection.

This method will return connection (if it is created as reusable) to its connection pool

Returns
TRUE - if succeeded, FALSE if not
See also
Abort, I_DriverContext::Connect

Implemented in CDB_Connection.

◆ CloseUnusedConnections() ◆ CompleteBatch() virtual bool I_BCPInCmd::CompleteBatch ( void  ) protectedpure virtual

Complete batch – to store all rows transferred by far in this batch into the table.

Implemented in CDB_BCPInCmd.

◆ CompleteBCP() virtual bool I_BCPInCmd::CompleteBCP ( void  ) protectedpure virtual

Complete the BCP and store all rows transferred in last batch into the table.

Implemented in CDB_BCPInCmd.

◆ Connect()

Create new connection to specified server (or service) within this context.

Parameters
srv_name Server/Service name. This parameter can be a SERVER name (host name, DNS alias name, or one of the names found in interfaces file) or an IP address. This parameter can also be a SERVICE name, which is defined by Load Balancer framework. In order to enable using of LB service names you have to call DBLB_INSTALL_DEFAULT() macro before any other DBAPI method. user_name User name. passwd User password. mode Connection mode. reusable If set to TRUE, then return connection into a connection pool on deletion. pool_name Name of a pool to which this connection is going to belong.
Returns
Connection object on success, NULL on error.

NOTE:

It is your responsibility to delete the returned connection object. reusable - controls connection pooling mechanism. If it is set to true then a connection will be added to a pool of connections instead of closing.

srv_name, user_name and passwd may be set to empty string.

If pool_name is provided then connection will be taken from a pool having this name if a pool is not empty.

It is your responsibility to put connections with the same server/user/password values in a pool.

If a pool name is not provided but a server name (srv_name) is provided instead then connection with the same name will be taken from a pool of connections if a pool is not empty.

If a pool is empty then new connection will be created unless you passed mode = fDoNotConnect. In this case NULL will be returned.

If you did not provide either a pool name or a server name then NULL will be returned.

Definition at line 295 of file interfaces.cpp.

References I_DriverContext::MakeConnection().

Referenced by CBlobLoader::CBlobLoader(), CBlobRetriever::CBlobRetriever(), CDbapiSampleApp::CreateConnection(), CBlobStoreDynamic::GetConn(), CMysqlDemoApp::Run(), COcbdDemoApp::Run(), and COdbcSpwhoDemoApp::Run().

◆ ConnectMode()

Get the bitmask for the connection mode (BCP, secure login, ...)

Returns
bitmask for the connection mode (BCP, secure login, ...)

Implemented in CDB_Connection.

◆ ConnectValidated()

Create new connection to specified server (within this context).

Parameters
srv_name Server/Service name. This parameter can be a SERVER name (host name, DNS alias name, or one of the names found in interfaces file) or an IP address. This parameter can also be a SERVICE name, which is defined by Load Balancer framework. In order to enable using of LB service names you have to call DBLB_INSTALL_DEFAULT() macro before any other DBAPI method. user_name User name. passwd User password. validator Connection validation object. mode Connection mode. reusable If set to true put connection into a connection pool on deletion. pool_name Name of a pool to which this connection is going to belong.
Returns
Connection object on success, NULL on error.

NOTE:

It is your responsibility to delete the returned connection object. reusable - controls connection pooling mechanism. If it is set to true then a connection will be added to a pool of connections instead of closing.

srv_name, user_name and passwd may be set to empty string.

If pool_name is provided then connection will be taken from a pool having this name if a pool is not empty.

It is your responsibility to put connections with the same server/user/password values in a pool.

If a pool name is not provided but a server name (srv_name) is provided instead then connection with the same name will be taken from a pool of connections if a pool is not empty.

If a pool is empty then new connection will be created unless you passed mode = fDoNotConnect. In this case NULL will be returned.

If you did not provide either a pool name or a server name then NULL will be returned.

Definition at line 317 of file interfaces.cpp.

References I_DriverContext::MakeConnection(), and CDBDefaultConnParams::SetConnValidator().

Referenced by CDbapiSampleApp::CreateConnection().

◆ Context()

Get pointer to the driver context.

Returns
pointer to the driver context

Implemented in CDB_Connection.

◆ CParamRecordset() CParamRecordset::CParamRecordset ( void  )

Definition at line 191 of file interfaces.cpp.

◆ CParamStmt() ◆ CurrentItemNo() virtual int I_Result::CurrentItemNo ( void  ) const pure virtual

Return current item number we can retrieve (0,1,...)

Returns
Return current item number we can retrieve (0,1,...) Return "-1" if no more items left (or available) to read.

Implemented in CDB_Result.

◆ Cursor() [1/3] ◆ Cursor() [2/3] ◆ Cursor() [3/3] ◆ DatabaseName() virtual const string& I_Connection::DatabaseName ( void  ) const protectedpure virtual

Get the database name.

Returns
Password value.

Implemented in CDB_Connection.

◆ Delete() ◆ DescriptorType() virtual int I_BlobDescriptor::DescriptorType ( void  ) const pure virtual ◆ DumpResults() virtual void I_BaseCmd::DumpResults ( void  ) pure virtual

Dump the results of the command if result processor is installed for this connection, it will be called for each result set.

Implemented in CDB_RPCCmd, and CDB_LangCmd.

◆ Fetch() virtual bool I_Result::Fetch ( void  ) pure virtual

Fetch next row.

Returns

Implemented in CDB_Result.

◆ GetApplicationName() virtual string I_DriverContext::GetApplicationName ( void  ) const pure virtual ◆ GetBindParams() virtual CDBParams& CParamStmt::GetBindParams ( void  ) pure virtual ◆ GetBlobDescriptor() ◆ GetColumnNum() virtual int I_Result::GetColumnNum ( void  ) const pure virtual

Return number of columns in the recordset.

Returns
number of columns in the recordset.

Implemented in CDB_Result.

◆ GetConnValidator() [1/2] ◆ GetConnValidator() [2/2]

Implemented in CUpdMirrorServerParams, impl::CMakeConnActualParams, CDBConnParamsDelegate, and impl::CDBConnParamsBase.

Referenced by CDBConnectionFactory::DispatchServerName(), CDBConnParamsDelegate::GetConnValidator(), impl::CMakeConnActualParams::GetConnValidator(), CUpdMirrorServerParams::GetConnValidator(), CDBConnectionFactory::MakeDBConnection(), CDefaultConnectPolicy::MakeDBConnection(), CDBConnectionFactory::MakeValidConnection(), and CDBConnectionFactory::x_LogConnection().

◆ GetDatabaseName() [1/2] string CDBConnParamsDelegate::GetDatabaseName ( void  ) const virtual ◆ GetDatabaseName() [2/2] virtual string CDBConnParams::GetDatabaseName ( void  ) const pure virtual ◆ GetDataType() ◆ GetDefineParams() [1/2]

Get meta-information about rows in resultset.

Implemented in CDB_Result.

◆ GetDefineParams() [2/2] virtual CDBParams& CParamRecordset::GetDefineParams ( void  ) pure virtual ◆ GetDirection() ◆ GetDriverName() [1/3] string CDBConnParamsDelegate::GetDriverName ( void  ) const virtual ◆ GetDriverName() [2/3] string I_DriverContext::GetDriverName ( void  ) const virtual ◆ GetDriverName() [3/3] virtual string CDBConnParams::GetDriverName ( void  ) const pure virtual ◆ GetEncoding() [1/2] EEncoding CDBConnParamsDelegate::GetEncoding ( void  ) const virtual ◆ GetEncoding() [2/2] virtual EEncoding CDBConnParams::GetEncoding ( void  ) const pure virtual ◆ GetExtraFeatures()

Get interface for extra features that could be implemented in the driver.

Implemented in CDB_Connection.

◆ GetFormat() ◆ GetHost() [1/2] Uint4 CDBConnParamsDelegate::GetHost ( void  ) const virtual ◆ GetHost() [2/2] virtual Uint4 CDBConnParams::GetHost ( void  ) const pure virtual

Implemented in CUpdMirrorServerParams, impl::CMakeConnActualParams, CDBConnParamsDelegate, CDBInterfacesFileConnParams, impl::CDBConnParamsBase, and CDB_DBLB_Delegate.

Referenced by CDBConnectionFactory::DispatchServerName(), CDBConnParamsDelegate::GetHost(), impl::CMakeConnActualParams::GetHost(), CUpdMirrorServerParams::GetHost(), CDBConnectionFactory::MakeValidConnection(), ctlib::Connection::Open(), CODBC_Connection::x_Connect(), and CDBConnectionFactory::x_LogConnection().

◆ GetHostName() virtual string I_DriverContext::GetHostName ( void  ) const pure virtual ◆ GetImageOrTextDescriptor() ◆ GetIndex() ◆ GetItem()

Get a result item (you can use either GetItem or ReadItem).

Parameters
item_buf If "item_buf" is not NULL, then use "*item_buf" (its type should be compatible with the type of retrieved item!) to retrieve the item to; otherwise allocate new "CDB_Object". If the existing "item_buf" has a BLOB type (CDB_Image, CDB_Text, CDB_VarBinaryMax, or CDB_VarCharMax), the value will be *appended* to the "item_buf" by default (policy == eAppendLOB). policy Data retrieval policy. If policy == eAppendLOB *and* "item_buf" has a BLOB type (CDB_Image, CDB_Text, CDB_VarBinaryMax, or CDB_VarCharMax), data will be *appended* to the end of previously assigned data. Otherwise (policy == eAssignLOB or "item_buf" has some other type), the new value will be *assigned* to the "item_buf" object.
Returns
a result item
See also
ReadItem, SkipItem

Implemented in CDB_Result.

◆ GetLoginTimeout() virtual unsigned int I_DriverContext::GetLoginTimeout ( void  ) const pure virtual ◆ GetMaxSize() ◆ GetName() [1/3] ◆ GetName() [2/3] ◆ GetName() [3/3]

Definition at line 129 of file interfaces.hpp.

References CDBParamVariant::m_Name.

Referenced by impl::CDBBindedParams::Bind(), CQueryImpl::GetColumn(), impl::CCachedRowInfo::GetDataType(), impl::CCachedRowInfo::GetDirection(), impl::CDBBindedParams::GetIndex(), impl::CCachedRowInfo::GetIndex(), impl::CCachedRowInfo::GetMaxSize(), CResultSetMetaData::GetMaxSize(), CResultSetMetaData::GetName(), impl::CDBBindedParams::GetName(), impl::CCachedRowInfo::GetName(), CResultSetMetaData::GetType(), CResultSet::GetVariant(), IResultSetMetaData::HasColumn(), impl::CDBBindedParams::Set(), and CStatement::SetParam().

◆ GetNum() virtual unsigned int CDBParams::GetNum ( void  ) const pure virtual ◆ GetOpeningMsgHandlers() [1/2] ◆ GetOpeningMsgHandlers() [2/2] ◆ GetParam() [1/2] ◆ GetParam() [2/2]

Parameters, which are not listed above explicitly, should be retrieved via SetParam() method.

Implemented in CUpdMirrorServerParams, CDBConnParams_DNC, impl::CMakeConnActualParams, CDBConnParamsDelegate, and impl::CDBConnParamsBase.

Referenced by impl::CConnection::CConnection(), CTL_Connection::CTL_Connection(), CDBConnectionFactory::DispatchServerName(), CDBConnParamsDelegate::GetParam(), impl::CMakeConnActualParams::GetParam(), CUpdMirrorServerParams::GetParam(), impl::CDriverContext::MakeConnection(), CDBConnectionFactory::MakeDBConnection(), MakePluginManagerParamTree(), impl::CDriverContext::MakePooledConnection(), CDBConnectionFactory::MakeValidConnection(), impl::CDriverContext::SatisfyPoolMinimum(), CDBConnectionFactory::x_LogConnection(), and CODBC_Connection::x_SetConnAttributesBefore().

◆ GetPassword() [1/2] string CDBConnParamsDelegate::GetPassword ( void  ) const virtual ◆ GetPassword() [2/2] virtual string CDBConnParams::GetPassword ( void  ) const pure virtual

Implemented in CUpdMirrorServerParams, impl::CMakeConnActualParams, CDBConnParamsDelegate, CDBEnvConnParams, and impl::CDBConnParamsBase.

Referenced by CMySQL_Connection::CMySQL_Connection(), CTL_Connection::CTL_Connection(), CDBConnParamsDelegate::GetPassword(), CUpdMirrorServerParams::GetPassword(), impl::CDriverContext::MakeConnection(), impl::CDriverContext::MakePooledConnection(), and CODBC_Connection::x_Connect().

◆ GetPort() [1/2] Uint2 CDBConnParamsDelegate::GetPort ( void  ) const virtual ◆ GetPort() [2/2] virtual Uint2 CDBConnParams::GetPort ( void  ) const pure virtual

Implemented in CUpdMirrorServerParams, impl::CMakeConnActualParams, CDBConnParamsDelegate, CDBInterfacesFileConnParams, impl::CDBConnParamsBase, and CDB_DBLB_Delegate.

Referenced by CDBConnectionFactory::DispatchServerName(), CDBConnParamsDelegate::GetPort(), impl::CMakeConnActualParams::GetPort(), CUpdMirrorServerParams::GetPort(), CDBConnectionFactory::MakeValidConnection(), ctlib::Connection::Open(), CODBC_Connection::x_Connect(), and CDBConnectionFactory::x_LogConnection().

◆ GetPosition() unsigned int CDBParamVariant::GetPosition ( void  ) const inline

Definition at line 119 of file interfaces.hpp.

References CDBParamVariant::m_Pos.

Referenced by impl::CDBBindedParams::Bind(), CDBAPIBulkInsert::Bind(), CQueryImpl::GetColumn(), impl::CCachedRowInfo::GetDataType(), impl::CCachedRowInfo::GetDirection(), impl::CDBBindedParams::GetIndex(), impl::CCachedRowInfo::GetIndex(), impl::CCachedRowInfo::GetMaxSize(), CResultSetMetaData::GetMaxSize(), CResultSetMetaData::GetName(), impl::CDBBindedParams::GetName(), impl::CCachedRowInfo::GetName(), CResultSetMetaData::GetType(), python::CCachedResultSet::GetVariant(), CResultSet::GetVariant(), IResultSetMetaData::HasColumn(), impl::CDBBindedParams::Set(), CCallableStatement::SetOutputParam(), CCallableStatement::SetParam(), CCursor::SetParam(), and CStatement::SetParam().

◆ GetProcName() virtual const string& I_RPCCmd::GetProcName ( void  ) const protectedpure virtual

Get a name of the procedure.

Implemented in CDB_RPCCmd.

◆ GetProtocolVersion() [1/2] Uint4 CDBConnParamsDelegate::GetProtocolVersion ( void  ) const virtual ◆ GetProtocolVersion() [2/2] virtual Uint4 CDBConnParams::GetProtocolVersion ( void  ) const pure virtual ◆ GetServerName() [1/2] string CDBConnParamsDelegate::GetServerName ( void  ) const virtual ◆ GetServerName() [2/2] virtual string CDBConnParams::GetServerName ( void  ) const pure virtual

Implemented in CUpdMirrorServerParams, impl::CMakeConnActualParams, CDBConnParamsDelegate, CDBEnvConnParams, impl::CDBConnParamsBase, and CDB_DBLB_Delegate.

Referenced by CMySQL_Connection::CMySQL_Connection(), CTL_Connection::CTL_Connection(), CDBConnectionFactory::DispatchServerName(), CDBInterfacesFileConnParams::GetHost(), CDBInterfacesFileConnParams::GetPort(), CDBConnParamsDelegate::GetServerName(), CDBInterfacesFileConnParams::GetServerType(), impl::CDriverContext::MakeConnection(), CDBConnectionFactory::MakeDBConnection(), impl::CDriverContext::MakePooledConnection(), CDBConnectionFactory::MakeValidConnection(), ctlib::Connection::Open(), impl::CDriverContext::SatisfyPoolMinimum(), CODBCContext::SetupErrorReporter(), CODBC_Connection::x_Connect(), CDBConnectionFactory::x_LogConnection(), and CODBC_Connection::x_SetupErrorReporter().

◆ GetServerType() [1/2] ◆ GetServerType() [2/2] virtual EServerType CDBConnParams::GetServerType ( void  ) const pure virtual ◆ GetThis() ◆ GetTimeout() [1/2] virtual unsigned int I_DriverContext::GetTimeout ( void  ) const pure virtual ◆ GetTimeout() [2/2] virtual size_t I_Connection::GetTimeout ( void  ) const protectedpure virtual

Get connection timeout.

This timeout limits how long each query or the like can take.

Implemented in CDB_Connection.

◆ GetUserName() [1/2] string CDBConnParamsDelegate::GetUserName ( void  ) const virtual ◆ GetUserName() [2/2] virtual string CDBConnParams::GetUserName ( void  ) const pure virtual

Implemented in CUpdMirrorServerParams, impl::CMakeConnActualParams, CDBConnParamsDelegate, CDBEnvConnParams, and impl::CDBConnParamsBase.

Referenced by CMySQL_Connection::CMySQL_Connection(), CTL_Connection::CTL_Connection(), CDBConnParamsDelegate::GetUserName(), CUpdMirrorServerParams::GetUserName(), impl::CDriverContext::MakeConnection(), impl::CDriverContext::MakePooledConnection(), CDBConnectionFactory::MakeValidConnection(), ctlib::Connection::Open(), CODBCContext::SetupErrorReporter(), CODBC_Connection::x_Connect(), CDBConnectionFactory::x_LogConnection(), and CODBC_Connection::x_SetupErrorReporter().

◆ GetValue() ◆ GetVersionString() string I_Connection::GetVersionString ( void  ) const protectedvirtual ◆ HasFailed() ◆ HasMoreResults() virtual bool I_BaseCmd::HasMoreResults ( void  ) const pure virtual ◆ I_BaseCmd() ◆ I_BCPInCmd() ◆ I_Connection() ◆ I_CursorCmd() ◆ I_DriverContext() I_DriverContext::I_DriverContext ( void  ) protected

Definition at line 284 of file interfaces.cpp.

◆ I_LangCmd() ◆ I_Result() ◆ I_RPCCmd() ◆ I_SendDataCmd() ◆ InitApplicationName() virtual void I_DriverContext::InitApplicationName ( void  ) inlinevirtual ◆ IsAbleTo()

Check if a driver is acle to provide necessary functionality.

Parameters
cpb Functionality to query about.
Returns

Implemented in CODBCContext, CMySQLContext, and CTLibContext.

◆ IsAlive() virtual bool I_Connection::IsAlive ( void  ) protectedpure virtual

Check out if connection is alive.

This function doesn't ping the server, it just checks the status of connection which was set by the last i/o operation.

Returns

Implemented in CDB_Connection.

◆ IsPositional() bool CDBParamVariant::IsPositional ( void  ) const inline

Definition at line 115 of file interfaces.hpp.

References CDBParamVariant::m_IsPositional.

Referenced by impl::CDBBindedParams::Bind(), CDBAPIBulkInsert::Bind(), CQueryImpl::GetColumn(), impl::CCachedRowInfo::GetDataType(), impl::CCachedRowInfo::GetDirection(), impl::CDBBindedParams::GetIndex(), impl::CCachedRowInfo::GetIndex(), impl::CCachedRowInfo::GetMaxSize(), CResultSetMetaData::GetMaxSize(), CResultSetMetaData::GetName(), impl::CDBBindedParams::GetName(), impl::CCachedRowInfo::GetName(), CResultSetMetaData::GetType(), python::CCachedResultSet::GetVariant(), CResultSet::GetVariant(), IResultSetMetaData::HasColumn(), impl::CDBBindedParams::Set(), CCallableStatement::SetOutputParam(), CCallableStatement::SetParam(), CCursor::SetParam(), and CStatement::SetParam().

◆ IsReusable() virtual bool I_Connection::IsReusable ( void  ) const protectedpure virtual

Check if this connection is a reusable one.

Returns

Implemented in CDB_Connection.

◆ ItemDataType() virtual EDB_Type I_Result::ItemDataType ( unsigned int  item_num ) const pure virtual

Get datatype of a result item.

Parameters
item_num Number of item, starting from 0.
Returns
Return 'eDB_UnsupportedType' if "item_num" >= NofItems().

Implemented in CDB_Result.

◆ ItemMaxSize() virtual size_t I_Result::ItemMaxSize ( unsigned int  item_num ) const pure virtual

Get size (in bytes) of a result item.

Parameters
item_num Number of item, starting from 0.
Returns
Return zero if "item_num" >= NofItems().

Implemented in CDB_Result.

◆ ItemName() virtual const char* I_Result::ItemName ( unsigned int  item_num ) const pure virtual

Get name of a result item.

Parameters
item_num Number of item, starting from 0.
Returns
NULL if "item_num" >= NofItems(), otherwise item name.

Implemented in CDB_Result.

◆ LangCmd() [1/2]

These methods: LangCmd(), RPC(), BCPIn(), Cursor() and SendDataCmd() create and return a "command" object, register it for later use with this (and only this!) connection.

On error, an exception will be thrown (they never return NULL!). It is the user's responsibility to delete the returned "command" object. Language command

Implemented in CDB_Connection.

Referenced by I_Connection::LangCmd().

◆ LangCmd() [2/2] ◆ MakeConnection() ◆ MakeName()

Definition at line 151 of file public.cpp.

References CTempString::assign(), CTempString::data(), DATABASE_DRIVER_ERROR, CDBParamVariant::eFormatName, CDBParamVariant::eNamedName, CTempString::end(), CDBParamVariant::eNumericName, CDBParamVariant::ePlainName, CDBParamVariant::eQMarkName, CDBParamVariant::eSQLServerName, format, isdigit(), and NULL.

◆ MakePlainName() ◆ MakePooledConnection()

Create connection object WITHOUT using of Load Balancer / connection factory.

Parameters
params Connection parameters.
Returns
Connection object.

Implemented in impl::CDriverContext.

◆ More() ◆ NCBI_PARAM_TYPE() ◆ NofConnections() [1/2] ◆ NofConnections() [2/2] ◆ NofItems() virtual unsigned int I_Result::NofItems ( void  ) const pure virtual

Get # of items (columns) in the result.

Get # of items (columns) in the result.

Returns
Number of items (columns) in the result.

Implemented in CDB_Result.

◆ Open()

Open the cursor.

Return NULL if cursor resulted in no data. Throw exception on error.

Implemented in CDB_CursorCmd.

◆ operator=() [1/2] ◆ operator=() [2/2] ◆ Password() virtual const string& I_Connection::Password ( void  ) const protectedpure virtual

Get the password.

Returns
Password value.

Implemented in CDB_Connection.

◆ PoolName() virtual const string& I_Connection::PoolName ( void  ) const protectedpure virtual

Find out which connection pool this connection belongs to.

Returns
connection pool

Implemented in CDB_Connection.

◆ PopCntxMsgHandler() ◆ PopDefConnMsgHandler() ◆ PopMsgHandler() ◆ PushCntxMsgHandler() ◆ PushDefConnMsgHandler() ◆ PushMsgHandler()

Put the message handler into message handler stack.

Parameters
h Error message handler. ownership If set to eNoOwnership, it is user's responsibility to unregister and delete the error message handler. If set to eTakeOwnership, then DBAPI will take ownership of the error message handler and delete it itself.
See also
PopMsgHandler

Implemented in CDB_Connection.

◆ ReadItem() virtual size_t I_Result::ReadItem ( void *  buffer, size_t  buffer_size, boolis_null = 0  ) pure virtual

Read a result item body (for BLOB columns, mostly).

Throw an exception on any error.

Parameters
buffer Buffer to fill with data. buffer_size Buffere size. is_null Set "*is_null" to TRUE if the item is <NULL>.
Returns
number of successfully read bytes.
See also
GetItem, SkipItem

Implemented in CDB_Result.

◆ Refresh() virtual bool I_Connection::Refresh ( void  ) protectedpure virtual

Reset the connection to the "ready" state (cancel all active commands)

Returns

Implemented in CDB_Connection.

◆ ReleaseChildObj() void CDBConnParams::ReleaseChildObj ( void  ) const inlineprotected ◆ Result() ◆ ResultType() virtual EDB_ResType I_Result::ResultType ( void  ) const pure virtual

Get type of the result.

Returns
Result type

Implemented in CDB_Result.

◆ RowCount() [1/2] virtual int I_BaseCmd::RowCount ( void  ) const pure virtual

Get the number of rows affected by the command Special case: negative on error or if there is no way that this command could ever affect any rows (like PRINT).

Implemented in CDB_RPCCmd, and CDB_LangCmd.

Referenced by CStatement::HasMoreResults().

◆ RowCount() [2/2] virtual int I_CursorCmd::RowCount ( void  ) const protectedpure virtual

Get the number of fetched rows Special case: negative on error or if there is no way that this command could ever affect any rows (like PRINT).

Implemented in CDB_CursorCmd.

◆ RPC() [1/2] ◆ RPC() [2/2] ◆ SemiShallowClone() virtual CDBParams* CDBParams::SemiShallowClone ( void  ) const pure virtual

Yield a lightweight copy of these parameters, sharing representations for variable-length datatypes.

Implemented in impl::CDBBindedParams.

◆ Send() virtual bool I_BaseCmd::Send ( void  ) pure virtual ◆ SendChunk() virtual size_t I_SendDataCmd::SendChunk ( const void *  pChunk, size_t  nofBytes  ) protectedpure virtual

Send chunk of data to the server.

Return number of bytes actually transferred to server.

Implemented in CDB_SendDataCmd.

◆ SendData()

Shortcut to send text and image to the server without using the "Send-data" command (SendDataCmd)

Parameters
desc Lob descriptor. lob Large object – [N]TEXT, IMAGE, [N]VARCHAR(MAX), or VARBINARY(MAX). log_it Log LOB operation if this value is set to true.
Returns
See also
SendDataCmd

Implemented in CDB_Connection.

◆ SendDataCmd() [1/2]

Create send-data command.

Parameters
desc Lob descriptor. data_size Maximal data size. log_it Log LOB operation if this value is set to true. discard_results Discard all resultsets that might be returned from server if this value is set to true.
Returns
Newly created send-data object.
See also
SendData

Implemented in CDB_Connection.

◆ SendDataCmd() [2/2]

Create send-data command.

Parameters
item_num Column number to rewrite. size Maximal data size. log_it Log LOB operation if this value is set to true. discard_results Discard all resultsets that might be returned from server if this value is set to true.
Returns
Newly created send-data object.
Deprecated:
Please use I_Connection::SendDataCmd instead.
See also
I_Connection::SendDataCmd

Implemented in CDB_CursorCmd.

◆ SendRow() virtual bool I_BCPInCmd::SendRow ( void  ) protectedpure virtual ◆ ServerName() virtual const string& I_Connection::ServerName ( void  ) const protectedpure virtual

Get the server name.

Returns
Server/Service name.

Implemented in CDB_Connection.

◆ Set() ◆ SetApplicationName() virtual void I_DriverContext::SetApplicationName ( const stringapp_name ) pure virtual ◆ SetChildObj() ◆ SetHostName() virtual void I_DriverContext::SetHostName ( const stringhost_name ) pure virtual ◆ SetLoginTimeout() virtual bool I_DriverContext::SetLoginTimeout ( unsigned int  nof_secs = 0 ) pure virtual ◆ SetMaxBlobSize() virtual bool I_DriverContext::SetMaxBlobSize ( size_t  nof_bytes ) pure virtual ◆ SetMaxTextImageSize() bool I_DriverContext::SetMaxTextImageSize ( size_t  n ) inline ◆ SetRecompile() virtual void I_RPCCmd::SetRecompile ( bool  recompile = true ) protectedpure virtual

Set the "recompile before execute" flag for the stored proc Implementation-specific.

Implemented in CDB_RPCCmd.

◆ SetResultProcessor()

Set new result-processor.

Parameters
Returns
Old result-processor

Implemented in CDB_Connection.

◆ SetTimeout() [1/2] virtual void I_Connection::SetTimeout ( size_t  nof_secs ) protectedpure virtual

Set connection timeout.

This timeout limits how long each query or the like can take.

Parameters
nof_secs Number of seconds. If "nof_secs" is zero or is "too big" (depends on the underlying DB API), then set the timeout to infinite.

Implemented in CDB_Connection.

◆ SetTimeout() [2/2] virtual bool I_DriverContext::SetTimeout ( unsigned int  nof_secs = 0 ) pure virtual ◆ SkipItem() virtual bool I_Result::SkipItem ( void  ) pure virtual ◆ Update() ◆ UpdateBlob() ◆ UpdateTextImage() ◆ UserName() virtual const string& I_Connection::UserName ( void  ) const protectedpure virtual ◆ WasCanceled() virtual bool I_BaseCmd::WasCanceled ( void  ) const pure virtual ◆ WasSent() virtual bool I_BaseCmd::WasSent ( void  ) const pure virtual ◆ ~CDBConnParams() CDBConnParams::~CDBConnParams ( void  ) virtual

Definition at line 47 of file interfaces.cpp.

◆ ~CDBConnParamsDelegate() CDBConnParamsDelegate::~CDBConnParamsDelegate ( void  ) virtual ◆ ~CDBParams() CDBParams::~CDBParams ( void  ) virtual

Definition at line 145 of file interfaces.cpp.

◆ ~CDBParamVariant() CDBParamVariant::~CDBParamVariant ( void  )

Definition at line 123 of file public.cpp.

◆ ~CParamRecordset() CParamRecordset::~CParamRecordset ( void  ) virtual

Definition at line 195 of file interfaces.cpp.

◆ ~CParamStmt() CParamStmt::~CParamStmt ( void  ) virtual

Definition at line 203 of file interfaces.cpp.

◆ ~I_BaseCmd() I_BaseCmd::~I_BaseCmd ( void  ) virtual

Definition at line 186 of file interfaces.cpp.

◆ ~I_BCPInCmd() I_BCPInCmd::~I_BCPInCmd ( void  ) virtual

Definition at line 230 of file interfaces.cpp.

◆ ~I_BlobDescriptor() I_BlobDescriptor::~I_BlobDescriptor ( void  ) virtual

Definition at line 135 of file interfaces.cpp.

◆ ~I_Connection() I_Connection::~I_Connection ( void  ) virtual

Definition at line 352 of file interfaces.cpp.

◆ ~I_CursorCmd() I_CursorCmd::~I_CursorCmd ( void  ) virtual

Definition at line 239 of file interfaces.cpp.

◆ ~I_DriverContext() I_DriverContext::~I_DriverContext ( void  ) virtual

Definition at line 289 of file interfaces.cpp.

◆ ~I_LangCmd() I_LangCmd::~I_LangCmd ( void  ) virtual

Definition at line 211 of file interfaces.cpp.

◆ ~I_Result() ◆ ~I_RPCCmd() ◆ ~I_SendDataCmd() I_SendDataCmd::~I_SendDataCmd ( void  ) virtual

Definition at line 255 of file interfaces.cpp.

◆ bool ◆ conn_use_encrypt_data ◆ dbapi ◆ m_ChildObj ◆ m_Format ◆ m_IsPositional bool CDBParamVariant::m_IsPositional private ◆ m_Name ◆ m_Other

Definition at line 357 of file interfaces.hpp.

Referenced by CDBConnParamsDelegate::CDBConnParamsDelegate(), CDBConnParamsDelegate::GetConnValidator(), CDBConnParamsDelegate::GetDatabaseName(), CDBConnParamsDelegate::GetDriverName(), CDBConnParamsDelegate::GetEncoding(), CDBConnParamsDelegate::GetHost(), CDBConnParamsDelegate::GetOpeningMsgHandlers(), CDBConnParamsDelegate::GetParam(), CDBConnParamsDelegate::GetPassword(), CDBConnParamsDelegate::GetPort(), CDBConnParamsDelegate::GetProtocolVersion(), CDBConnParamsDelegate::GetServerName(), CDBConnParamsDelegate::GetServerType(), CDBConnParamsDelegate::GetUserName(), and CDBConnParamsDelegate::~CDBConnParamsDelegate().

◆ m_Pos unsigned int CDBParamVariant::m_Pos private ◆ NCBI_DBAPIDRIVER_EXPORT ◆ CDBConnParamsDelegate ◆ IDBConnectionFactory

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