Go to the documentation of this file.
29 #include <boost/thread.hpp>
44 virtual void connect(
const std::string& host,
const std::string& user,
const std::string& pass,
45 const std::string& db,
uint16 port,
const std::string& unix_socket =
"") {}
59 virtual bool commit() {
return false; }
69 virtual bool executeQuery(
const std::string& query) {
return false; }
89 virtual std::string
escapeString(
const std::string&) {
return "''"; }
190 virtual bool next() {
return false; }
210 void set(std::string& query) { str(query); }
211 void append(
char query) { putback(query); }
238 void setQuery(
const std::string& query);
247 bool addRow(
const std::string& row);
252 bool addRow(std::stringstream& row);
273 m_state = STATE_FRESH;
278 if(m_state == STATE_READY)
284 m_state = STATE_READY;
290 if(m_state != STATE_READY)
293 m_state = STATE_DONE;
299 enum TransactionStates_t
void setConnected(bool connected)
virtual std::string escapeBlob(const char *, uint32)
virtual const char * getDataStream(const std::string &, uint64 &)
virtual uint64 getLastInsertedRowID()
virtual bool handleError()
void set(std::string &query)
bool addRow(const std::string &row)
virtual std::string escapeString(const std::string &)
DBTransaction(DatabasePtr database)
void setQuery(const std::string &query)
virtual DBResultPtr storeQuery(const std::string &query)
DBInsert(const DatabasePtr &db)
virtual bool executeQuery(const std::string &query)
virtual int getRowCount()
virtual int32 getDataInt(const std::string &)
DBResultPtr verifyResult(DBResultPtr result)
virtual std::string getDataString(const std::string &)
virtual bool beginTransaction()
static boost::recursive_mutex databaseLock
virtual Fw::DatabaseEngine getDatabaseEngine()
virtual int64 getDataLong(const std::string &)
virtual std::string getUpdateLimiter()
virtual std::string getStringComparer()
LuaObject, all script-able classes have it as base.
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 bool internalExecuteQuery(const std::string &query)