36 lines
549 B
C++
36 lines
549 B
C++
#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
|