Go to the documentation of this file.
23 #ifndef DATABASEMYSQL_H
24 #define DATABASEMYSQL_H
34 #include <mysql/mysql.h>
42 virtual void connect(
const std::string& host,
const std::string& user,
const std::string& pass,
43 const std::string& db,
uint16 port,
const std::string& unix_socket =
"");
virtual std::string getDataString(const std::string &s)
virtual Fw::DatabaseEngine getDatabaseEngine()
bool internalExecuteQuery(const std::string &query)
virtual bool executeQuery(const std::string &query)
virtual uint64 getLastInsertedRowID()
MySQLResult(MYSQL_RES *result)
virtual DBResultPtr storeQuery(const std::string &query)
std::map< const std::string, uint32 > RowNames_t
virtual const char * getDataStream(const std::string &s, uint64 &size)
virtual std::string escapeString(const std::string &s)
virtual bool beginTransaction()
virtual int64 getDataLong(const std::string &s)
virtual void connect(const std::string &host, const std::string &user, const std::string &pass, const std::string &db, uint16 port, const std::string &unix_socket="")
virtual int getRowCount()
virtual int32 getDataInt(const std::string &s)
virtual std::string escapeBlob(const char *s, uint32 length)