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

NCBI C++ ToolKit: CSDBAPI Class Reference

Search Toolkit Book for CSDBAPI

#include <dbapi/simple/sdbapi.hpp>

Definition at line 1135 of file sdbapi.hpp.

◆ EDriver Enumerator eDriver_FTDS100  eDriver_FTDS14 

Definition at line 1158 of file sdbapi.hpp.

◆ EMirrorStatus
See also
UpdateMirror
Enumerator eMirror_Steady 

Mirror is working on the same server as before.

eMirror_NewMaster 

Switched to a new master.

eMirror_Unavailable 

All databases in the mirror are unavailable.

Definition at line 1170 of file sdbapi.hpp.

◆ CSDBAPI() CSDBAPI::CSDBAPI ( void  ) private ◆ GetApplicationName() string CSDBAPI::GetApplicationName ( void  ) static ◆ Init() bool CSDBAPI::Init ( void  ) static

Initialize SDBAPI.

Creates minimum number of connections required for each pool configured in application's configuration file. If openning of some of those connections failed then method will return FALSE, otherwise TRUE.

Definition at line 1327 of file sdbapi.cpp.

References NStr::CompareCase(), ctx, IRegistry::EnumerateSections(), CNcbiApplicationAPI::GetConfig(), impl::CDBConnParamsBase::GetParam(), CNcbiApplication::Instance(), ITERATE, result, s_GetDBContext(), and CSDB_ConnectionParam::x_FillLowerParams().

◆ NewBlobStore()

Get new CBlobStoreDynamic object (to be owned by caller).

Parameters
param Connection parameters; only Service, Username, and Password apply here, though. table_name Name of the table holding the blobs (structure to be deduced by inspection). flags Flags governing compression and transaction logging. image_limit Maximum size of a single blob (to be split across columns as needed).

Definition at line 1726 of file sdbapi.cpp.

References CSDB_ConnectionParam::ePassword, ERR_POST_X_ONCE, CSDB_ConnectionParam::eService, CSDB_ConnectionParam::eUsername, flags, fNBS_IsText, CSDB_ConnectionParam::Get(), s_CheckCompressionFlags(), s_GetDBContext(), s_TranslateBlobStoreFlags(), table_name, and Warning().

◆ SetApplicationName() ◆ UpdateMirror()

Check for master/mirror switch.

If switch is detected or if all databases in the mirror become unavailable, then all connections to the "old" master server will be immediately invalidated, so that any subsequent database operation on them (via objects CQuery and CBulkInsert) would cause an error. The affected CDatabase objects will be automatically invalidated too. User code will have to explicitly re-connect (which will open connection to the new master, if any).

Note
If the database resource is in any way misconfigured, then an exception will be thrown.
Parameters
dbservice Database resource name servers List of database servers, with the master one first. error_message Detailed error message (if any).
Returns
Result code

Definition at line 1480 of file sdbapi.cpp.

References impl::CDriverContext::CloseConnsForPool(), conn, SMirrorInfo::conn_params, IDataSource::CreateConnection(), ds_init, eConnEstablished, eConnInitializing, eConnNotConnected, eMirror_NewMaster, eMirror_Steady, eMirror_Unavailable, ERASE_ITERATE, eRetriable_No, ERR_POST_X, eTakeOwnership, AutoPtr< X, Del >::get(), CDbapiConnMgr::GetConnectionFactory(), impl::CDBConnParamsBase::GetDatabaseName(), impl::CDBConnParamsBase::GetParam(), CRef< C, Locker >::GetPointer(), impl::CDBConnParamsBase::GetServerName(), CDBConnectionFactory::GetServersList(), CDbapiConnMgr::Instance(), ITERATE, kEmptyStr, SMirrorInfo::master, NCBI_THROW, NStr::NumericToString(), AutoPtr< X, Del >::reset(), s_GetDataSource(), s_GetDBContext(), impl::CDriverContext::SatisfyPoolMinimum(), SMirrorInfo::servers, CDBConnParamsBase::SetParam(), CDBConnParamsBase::SetServerName(), state::state(), stmt, Warning(), CDBConnectionFactory::WorkWithSingleServer(), and CSDB_ConnectionParam::x_FillLowerParams().

◆ UseDriver() void CSDBAPI::UseDriver ( EDriver  driver ) static

The documentation for this class was generated from the following files:


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