SQLiteClient.h 549 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef SQLITECLIENT_H
  2. #define SQLITECLIENT_H
  3. #include "SQLiteResultSet.h"
  4. #include "SQLiteStatement.h"
  5. #include <string>
  6. class sqlite3;
  7. namespace SQLite {
  8. class SQLiteClient
  9. {
  10. public:
  11. SQLiteClient(const std::string& filename);
  12. ~SQLiteClient();
  13. operator sqlite3*();
  14. public:
  15. SQLiteResultSet ExecuteQuery(const std::string& query);
  16. void BeginTransaction();
  17. void EndTransaction();
  18. private:
  19. SQLiteResultSet RetrieveResultSet(SQLiteStatement& statement);
  20. private:
  21. sqlite3* m_pSQLite3;
  22. };
  23. } // namespace SQLite
  24. #endif // SQLITECLIENT_H