Initial commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user