38 #define NCBI_USE_ERRCODE_X Dbapi_CTlib_Cmds
40 #undef NCBI_DATABASE_THROW
41 #define NCBI_DATABASE_THROW(ex_class, message, err_code, severity) \
42 NCBI_DATABASE_THROW_ANNOTATED(ex_class, message, err_code, severity, \
43 GetDbgInfo(), GetConnection(), GetLastParams())
49 namespace NCBI_NS_FTDS_CTLIB
59 const string& proc_name
95 "ct_command failed", 121001);
150 memset(¶m_fmt, 0,
sizeof(param_fmt));
void DropCmd(impl::CCommand &cmd)
CTL_Connection & GetConnection(void)
virtual void SetHasFailed(bool flag=true)
void SetExecCntxInfo(const string &info)
const TDbgInfo & GetDbgInfo(void) const
bool AssignCmdParam(CDB_Object ¶m, const string ¶m_name, CS_DATAFMT ¶m_fmt, bool declare_only=false)
CS_COMMAND * x_GetSybaseCmd(void) const
void DeleteResultInternal(void)
CS_RETCODE CheckSFB(CS_RETCODE rc, const char *msg, unsigned int msg_num)
CDB_Result * MakeResult(void)
bool Cancel(void) override
Cancel the command execution.
bool x_AssignParams(void)
virtual bool Send(void)
Send command to the server.
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 ...
virtual CDBParams & GetBindParams(void)
Binding.
virtual CDB_Result * Result(void)
Get result set.
virtual bool HasMoreResults(void) const
CTL_RPCCmd(CTL_Connection &con, const string &proc_name)
virtual ~CTL_RPCCmd(void)
unique_ptr< CDBParams > m_InParams
const string & GetQuery(void) const
virtual bool HasFailed(void) const
const CDB_Params & GetBindParamsImpl(void) const
void DetachInterface(void)
bool NeedToRecompile(void) const
impl::CConnection & GetConnImpl(void) const
CDB_Object * GetParam(unsigned int param_no) const
const string & GetParamName(unsigned int param_no) const
TStatus GetParamStatus(unsigned int param_no) const
unsigned int NofParams() const
static CS_CONNECTION * conn
CS_RETCODE ct_command(CS_COMMAND *cmd, CS_INT type, const CS_VOID *buffer, CS_INT buflen, CS_INT option)
#define CHECK_DRIVER_ERROR(failed, message, err_code)
#define NCBI_CURRENT_FUNCTION
Get current function name.
#define NCBI_CATCH_ALL_X(err_subcode, message)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition of all error codes used in dbapi libraries (dbapi_driver.lib and others).
const struct ncbi::grid::netcache::search::fields::SIZE size