ncbi::CDB_LangCmd;
110 friend classncbi::CDB_RPCCmd;
111 friend classncbi::CDB_BCPInCmd;
112 friend classncbi::CDB_CursorCmd;
116 const string&
query);
118 const string& cursor_name,
119 const string&
query);
124 virtual boolSend(
void);
127 virtual boolCancel(
void);
138 virtual boolHasMoreResults(
void)
const;
141 virtual boolHasFailed(
void)
const;
151 voidDumpResults(
void);
157 virtual CDBParams& GetBindParams(
void);
159 virtual CDBParams& GetDefineParams(
void);
162{
returnWasSent() ? m_LastInParams.get() : &m_InParams; }
165 bool More(
const string& query_text)
167m_Query.append(query_text);
197 virtual boolCommitBCPTrans(
void);
201 virtual boolEndBCP(
void);
205 returnm_RowsSent - m_RowsSentAtBatchStart;
209 voidDetachInterface(
void);
214m_Recompile = recompile;
239 returnm_DefineParams;
243 returnm_DefineParams;
256 virtual boolUpdate(
const string&
table_name,
const string& upd_query);
258 virtual boolUpdateBlob(
unsigned intitem_num,
CDB_Stream&
data,
259 boollog_it =
true);
263 booldump_results =
true);
266 virtual boolDelete(
const string&
table_name);
270 virtual boolCloseCursor(
void);
306m_LastInParams.reset(m_InParams.SemiShallowClone());
340 friend classncbi::CDB_SendDataCmd;
356 virtual size_t SendChunk(
const void* pChunk,
size_tnofBytes) = 0;
364 virtual boolHasMoreResults(
void)
const;
369 voidDumpResults(
void);
371 voidDetachSendDataIntf(
void);
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
const string & GetQuery(void) const
CDB_Params & GetBindParamsImpl(void)
const CDB_Params & GetDefineParamsImpl(void) const
void SetCursorOpen(bool flag=true)
bool WasCanceled(void) const
unsigned int m_RowsSentAtBatchStart
CDB_Params & GetDefineParamsImpl(void)
string GetCmdName(void) const
void SetRecompile(bool recompile=true)
Set the "recompile before execute" flag for the stored proc.
bool CursorIsDeclared(void) const
CDB_Params m_DefineParams
virtual void SetHasFailed(bool flag=true)
CInterfaceHook< CDB_BCPInCmd > m_InterfaceBCPIn
unique_ptr< CDBParams > m_LastInParams
CDBBindedParams m_OutParams
const CDB_Params & GetBindParamsImpl(void) const
CInterfaceHook< CDB_LangCmd > m_InterfaceLang
CDBBindedParams m_InParams
CInterfaceHook< CDB_CursorCmd > m_InterfaceCursor
const CDBParams * GetLastParams(void) const
unsigned int m_BatchesSent
bool NeedToRecompile(void) const
bool CursorIsOpen(void) const
void SetCursorDeclared(bool flag=true)
unsigned int GetRowsInCurrentBatch(void) const
bool More(const string &query_text)
Add more text to the language command.
CInterfaceHook< CDB_RPCCmd > m_InterfaceRPC
virtual int RowCount(void) const =0
Get the number of rows affected by the command Special case: negative on error or if there is no way ...
void SetWasSent(bool flag=true)
impl::CConnection & GetConnImpl(void) const
impl::CConnection * m_ConnImpl
virtual size_t SendChunk(const void *pChunk, size_t nofBytes)=0
Send chunk of data to the server.
CInterfaceHook< CDB_SendDataCmd > m_Interface
virtual bool Cancel(void)=0
void SetBytes2Go(size_t value)
size_t GetBytes2Go(void) const
static CS_CONNECTION * conn
static const char table_name[]
static const column_t columns[]
EBCP_Hints
Type of hint that can be set.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_DBAPIDRIVER_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size
const GenericPointer< typename T::ValueType > T2 value
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