summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-mock.h
blob: fca2b6789124a4a466f747a385eae86d369a8fd5 (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 MOCKMYSQLDATASOURCE_H
#define MOCKMYSQLDATASOURCE_H

#include <c++11Helpers.h>
#include <filesystem>
#include <mockDatabase.h>
#include <visibility.h>

namespace MySQL {

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

		SPECIAL_MEMBERS_MOVE_RO(Mock);

	private:
		[[nodiscard]] DB::ConnectionPtr openConnection() const override;
	};

}

#endif