TreeFrogFramework: src/tdatabasecontext.h Source File
Go to the documentation of this file.
16 QSqlDatabase &getSqlDatabase(int id = 0);
17 TKvsDatabase &getKvsDatabase(Tf::KvsEngine engine);
19 void setTransactionEnabled(bool enable, int id = 0);
22 bool commitTransaction(int id = 0);
23 void rollbackTransactions();
24 bool rollbackTransaction(int id = 0);
28 static void setCurrentDatabaseContext(TDatabaseContext *context);
31 void releaseKvsDatabases();
32 void releaseSqlDatabases();
39 TCache *cachep {nullptr};
The TCache class stores items so that can be served faster.
Definition tcache.h:7
The TDatabaseContext class is the base class of contexts for database access.
Definition tdatabasecontext.h:11
QMap< int, TKvsDatabase > kvsDatabases
Definition tdatabasecontext.h:35
QMap< int, TSqlTransaction > sqlDatabases
Definition tdatabasecontext.h:34
KvsEngine
Definition tfnamespace.h:239
#define T_CORE_EXPORT
Definition tdeclexport.h:28
#define T_DISABLE_COPY(Class)
Definition tdeclexport.h:37
#define T_DISABLE_MOVE(Class)
Definition tdeclexport.h:41