( !mysql_init(&
m_MySQL) ) {
56 if( !mysql_real_connect(&
m_MySQL,
96 _TRACE(
"SetTimeout is not supported.");
104 _TRACE(
"SetCancelTimeout is not supported.");
189 returnmysql_get_client_info();
virtual ~CMySQL_Connection()
virtual CDB_BCPInCmd * BCPIn(const string &table_name)
"Bulk copy in" command
virtual string GetVersionString(void) const
virtual bool Close(void)
Close an open connection.
virtual bool Abort()
abort the connection Attention: it is not recommended to use this method unless you absolutely have t...
virtual bool IsAlive()
Check out if connection is alive (this function doesn't ping the server, it just checks the status of...
virtual CDB_LangCmd * LangCmd(const string &lang_query)
These methods: LangCmd(), RPC(), BCPIn(), Cursor() and SendDataCmd() create and return a "command" ob...
virtual CDB_CursorCmd * Cursor(const string &cursor_name, const string &query, unsigned int batch_size=1)
Cursor.
virtual void SetCancelTimeout(size_t nof_secs)
virtual bool SendData(I_BlobDescriptor &desc, CDB_Stream &lob, bool log_it=true)
Shortcut to send text and image to the server without using the "Send-data" command (SendDataCmd)
virtual CDB_RPCCmd * RPC(const string &rpc_name)
Remote procedure call.
friend class CMySQL_LangCmd
virtual CDB_SendDataCmd * SendDataCmd(I_BlobDescriptor &desc, size_t data_size, bool log_it=true, bool dump_results=true)
"Send-data" command
CMySQL_LangCmd * m_ActiveCmd
virtual bool Refresh()
Reset the connection to the "ready" state (cancel all active commands)
virtual void SetTimeout(size_t nof_secs)
virtual I_DriverContext::TConnectionMode ConnectMode() const
Get the bitmask for the connection mode (BCP, secure login, ...)
CMySQL_Connection(CMySQLContext &cntx, const CDBConnParams ¶ms)
void SetServerType(CDBConnParams::EServerType type)
void DeleteAllCommands(void)
CDB_LangCmd * Create_LangCmd(CBaseCmd &lang_cmd)
These methods to allow the children of CConnection to create various command-objects.
#define DATABASE_DRIVER_WARNING(message, err_code)
virtual string GetPassword(void) const =0
virtual string GetServerName(void) const =0
virtual string GetUserName(void) const =0
#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).
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