summaryrefslogtreecommitdiff
path: root/libpqpp/pq-mock.h
blob: f712ef6ee1909554dcd18fe23d44bdef68126e8b (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 MOCKPQDATASOURCE_H
#define MOCKPQDATASOURCE_H

#include <mockDatabase.h>
#include <boost/filesystem/path.hpp>
#include <visibility.h>
#include "pq-connection.h"

namespace PQ {
	class DLL_PUBLIC Mock : public DB::MockServerDatabase {
		public:
			Mock(const std::string & master, const std::string & name, const std::vector<boost::filesystem::path> & ss);
			~Mock();

			PQ::Connection * openConnection() const override;

		protected:
			void DropDatabase() const override;
			void SetTablesToUnlogged() const;
	};
}

#endif