summaryrefslogtreecommitdiff
path: root/project2/sql/sql-modSQLite.h
diff options
context:
space:
mode:
Diffstat (limited to 'project2/sql/sql-modSQLite.h')
-rw-r--r--project2/sql/sql-modSQLite.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/project2/sql/sql-modSQLite.h b/project2/sql/sql-modSQLite.h
new file mode 100644
index 0000000..267ba0b
--- /dev/null
+++ b/project2/sql/sql-modSQLite.h
@@ -0,0 +1,24 @@
+#ifndef MOCKSQLITEDATASOURCE_H
+#define MOCKSQLITEDATASOURCE_H
+
+#include "mockDatasource.h"
+#include <boost/filesystem/path.hpp>
+
+class MockSQLiteDatabase {
+ public:
+ MockSQLiteDatabase(const std::string & name, const std::vector<boost::filesystem::path> & ss);
+ ~MockSQLiteDatabase();
+
+ protected:
+ void DropDatabase() const;
+ void CreateNewDatabase() const;
+
+ private:
+ static DB::Connection * openConnection(const std::string & connStr);
+ const boost::filesystem::path testDbPath;
+ const std::string mockName;
+};
+
+#endif
+
+