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.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/project2/sql/sql-modSQLite.h b/project2/sql/sql-modSQLite.h
index 267ba0b..36bca22 100644
--- a/project2/sql/sql-modSQLite.h
+++ b/project2/sql/sql-modSQLite.h
@@ -1,22 +1,22 @@
#ifndef MOCKSQLITEDATASOURCE_H
#define MOCKSQLITEDATASOURCE_H
-#include "mockDatasource.h"
+#include "mockDatabase.h"
#include <boost/filesystem/path.hpp>
-class MockSQLiteDatabase {
+class MockSQLiteDatabase : public MockDatabase {
public:
MockSQLiteDatabase(const std::string & name, const std::vector<boost::filesystem::path> & ss);
~MockSQLiteDatabase();
protected:
- void DropDatabase() const;
- void CreateNewDatabase() const;
+ void DropDatabase() const override;
+ void CreateNewDatabase() const override;
+
+ DB::Connection * openConnection() const override;
private:
- static DB::Connection * openConnection(const std::string & connStr);
const boost::filesystem::path testDbPath;
- const std::string mockName;
};
#endif