blob: cad10ebfbac86428a8d48f88ed259ad15d224309 (
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
25
26
27
28
29
30
31
32
33
34
|
#ifndef MOCKMYSQLDATASOURCE_H
#define MOCKMYSQLDATASOURCE_H
#include <mockDatabase.h>
#include <boost/filesystem/path.hpp>
#include <visibility.h>
#include <boost/shared_ptr.hpp>
#include "embeddedmy-server.h"
namespace MySQL {
namespace Embedded {
class DLL_PUBLIC Mock : public DB::MockDatabase {
public:
Mock(const std::string & name, const std::vector<boost::filesystem::path> & ss);
~Mock();
protected:
void DropDatabase() const override;
void CreateNewDatabase() const override;
DB::Connection * openConnection() const override;
private:
static boost::filesystem::path mockDbPath();
std::string dbname;
mutable ServerPtr embeddedServer;
};
}
}
#endif
|