Initial commit

This commit is contained in:
2020-02-12 19:57:50 +01:00
commit 8ecca3824b
13 changed files with 440 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
#ifndef SQLITECLIENT_H
#define SQLITECLIENT_H
#include "SQLiteResultSet.h"
#include "SQLiteStatement.h"
#include <string>
class sqlite3;
namespace SQLite {
class SQLiteClient
{
public:
SQLiteClient(const std::string& filename);
~SQLiteClient();
operator sqlite3*();
public:
SQLiteResultSet ExecuteQuery(const std::string& query);
void BeginTransaction();
void EndTransaction();
private:
SQLiteResultSet RetrieveResultSet(SQLiteStatement& statement);
private:
sqlite3* m_pSQLite3;
};
} // namespace SQLite
#endif // SQLITECLIENT_H