summaryrefslogtreecommitdiff
path: root/project2/sql/sql-modSQLite.h
blob: 36bca222376b3ced1798f110700dc81162f1402d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef MOCKSQLITEDATASOURCE_H
#define MOCKSQLITEDATASOURCE_H

#include "mockDatabase.h"
#include <boost/filesystem/path.hpp>

class MockSQLiteDatabase : public MockDatabase {
	public:
		MockSQLiteDatabase(const std::string & name, const std::vector<boost::filesystem::path> & ss);
		~MockSQLiteDatabase();

	protected:
		void DropDatabase() const override;
		void CreateNewDatabase() const override;

		DB::Connection * openConnection() const override;

	private:
		const boost::filesystem::path testDbPath;
};

#endif