1 #ifndef DBAPI_DRIVER_MYSQL___INTERFACES__HPP
2 #define DBAPI_DRIVER_MYSQL___INTERFACES__HPP
43 #if defined(NCBI_OS_MSWIN)
45 #ifdef WIN32_LEAN_AND_MEAN
46 # include <winsock2.h>
98 virtual bool IsAlive();
100 virtual CDB_LangCmd* LangCmd(
const string& lang_query);
104 bool dump_results =
true);
105 virtual CDB_RPCCmd* RPC(
const string& rpc_name);
109 unsigned int batch_size = 1);
115 virtual bool Refresh();
124 virtual bool Abort();
129 virtual bool Close(
void);
135 virtual string GetVersionString(
void)
const;
160 const string& lang_query);
165 virtual bool Cancel();
167 virtual bool HasMoreResults()
const;
168 virtual bool HasFailed()
const;
169 virtual int RowCount()
const;
170 int LastInsertId()
const;
174 m_DbgInfo->extra_msg =
info;
178 return m_DbgInfo->extra_msg;
188 string EscapeString(
const char*
str,
unsigned long len);
227 virtual bool Fetch();
228 virtual int CurrentItemNo()
const;
229 virtual int GetColumnNum(
void)
const;
232 virtual size_t ReadItem(
void*
buffer,
size_t buffer_size,
235 virtual bool SkipItem();
friend class CMySQL_Connection
friend class CMySQLContext
CMySQL_LangCmd * m_ActiveCmd
const TDbgInfo & GetDbgInfo(void) const
const CDBParams * GetLastParams(void) const
CMySQL_Connection::TDbgInfo TDbgInfo
CMySQL_Connection & GetConnection(void)
void SetExecCntxInfo(const string &info)
CRef< TDbgInfo > m_DbgInfo
const TDbgInfo & GetDbgInfo(void) const
const string & GetExecCntxInfo(void) const
const CMySQL_Connection & GetConnection(void) const
CMySQL_Connection * m_Connect
const CDBParams * GetLastParams(void) const
const CMySQL_Connection::TDbgInfo & GetDbgInfo(void) const
unsigned long * m_Lengths
CMySQL_Connection * m_Connect
const CMySQL_Connection & GetConnection() const
const CDBParams * GetLastParams(void) const
virtual bool SetTimeout(unsigned int nof_secs=0)
Set connection timeout.
virtual CConnection * MakeIConnection(const CDBConnParams ¶ms)=0
virtual bool SetCancelTimeout(unsigned int nof_secs)
const string kDBAPI_MYSQL_DriverName
void NCBI_EntryPoint_xdbapi_mysql(CPluginManager< I_DriverContext >::TDriverInfoList &info_list, CPluginManager< I_DriverContext >::EEntryPointRequest method)
static CS_CONNECTION * conn
static const char table_name[]
static const char * str(char *buf, int n)
ECapability
Report if the driver supports this functionality.
virtual string GetDriverName(void) const
virtual bool IsAbleTo(ECapability cpb) const =0
Check if a driver is acle to provide necessary functionality.
NCBI_XNCBI_EXPORT void Abort(void)
Smart abort function.
list< SDriverInfo > TDriverInfoList
List of driver information.
EEntryPointRequest
Actions performed by the entry point.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_DBAPIDRIVER_MYSQL_EXPORT