platform/shared/db/DBAdapter.h in rhodes-1.2.2 vs platform/shared/db/DBAdapter.h in rhodes-1.4.0

- old
+ new

@@ -7,17 +7,17 @@ namespace rho{ namespace db{ class CDBAdapter { - String m_strDbPath, m_strDbVer, m_strDbVerPath; sqlite3* m_dbHandle; + String m_strDbPath, m_strDbVer, m_strDbVerPath; Hashtable<String,sqlite3_stmt*> m_mapStatements; common::CMutex m_mxDB; common::CMutex m_mxTransDB; - boolean m_bInsideTransaction; boolean m_bUnlockDB; + boolean m_bInsideTransaction; CDBAttrManager m_attrMgr; struct CDBVersion { String m_strRhoVer; @@ -45,10 +45,11 @@ boolean isUnlockDB()const{ return m_bUnlockDB; } void setUnlockDB(boolean b){ m_bUnlockDB = b; } void Lock(){ m_mxDB.Lock(); } void Unlock(){ setUnlockDB(false); m_mxDB.Unlock(); } boolean isInsideTransaction(){ return m_bInsideTransaction; } + const String& getDBPath(){ return m_strDbPath; } void bind(sqlite3_stmt* st, int nPos, int val) { sqlite3_bind_int(st, nPos, val); } @@ -195,11 +196,11 @@ void startTransaction(); void endTransaction(); void rollback(); void destroy_table(String strTable); + void setInitialSyncDB(String fDataName); - static String makeBlobFolderName(); //private: DBResultPtr executeStatement(common::CAutoPtr<CDBResult>& res); void checkDBVersion(String& strVer); CDBVersion readDBVersion();//throws Exception