Search Toolkit Book for CSDBAPI
#include <dbapi/simple/sdbapi.hpp>
Definition at line 1135 of file sdbapi.hpp.
◆ EDriver Enumerator eDriver_FTDS100 eDriver_FTDS14Definition at line 1158 of file sdbapi.hpp.
◆ EMirrorStatusMirror is working on the same server as before.
eMirror_NewMasterSwitched to a new master.
eMirror_UnavailableAll 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 ) staticInitialize 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).
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).
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 ) staticThe 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