summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-mock.h
diff options
context:
space:
mode:
Diffstat (limited to 'libodbcpp/odbc-mock.h')
-rw-r--r--libodbcpp/odbc-mock.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/libodbcpp/odbc-mock.h b/libodbcpp/odbc-mock.h
new file mode 100644
index 0000000..d2bcbfe
--- /dev/null
+++ b/libodbcpp/odbc-mock.h
@@ -0,0 +1,25 @@
+#ifndef MOCKODBCDATASOURCE_H
+#define MOCKODBCDATASOURCE_H
+
+#include <mockDatabase.h>
+#include <boost/filesystem/path.hpp>
+#include <visibility.h>
+
+namespace ODBC {
+
+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();
+
+ protected:
+ void DropDatabase() const override;
+
+ private:
+ DB::Connection * openConnection() const override;
+};
+
+}
+
+#endif
+