summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-mock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqlpp/my-mock.cpp')
-rw-r--r--libmysqlpp/my-mock.cpp35
1 files changed, 17 insertions, 18 deletions
diff --git a/libmysqlpp/my-mock.cpp b/libmysqlpp/my-mock.cpp
index 3c03ba8..52d4899 100644
--- a/libmysqlpp/my-mock.cpp
+++ b/libmysqlpp/my-mock.cpp
@@ -1,29 +1,28 @@
-#include "my-connection.h"
#include "my-mock.h"
+#include "my-connection.h"
#include <compileTimeFormatter.h>
NAMEDFACTORY("mysql", MySQL::Mock, DB::MockDatabaseFactory);
namespace MySQL {
-Mock::Mock(const std::string & master, const std::string & name, const std::vector<std::filesystem::path> & ss) :
- MockServerDatabase(master, name, "mysql")
-{
- CreateNewDatabase();
- PlaySchemaScripts(ss);
-}
+ Mock::Mock(const std::string & master, const std::string & name, const std::vector<std::filesystem::path> & ss) :
+ MockServerDatabase(master, name, "mysql")
+ {
+ CreateNewDatabase();
+ PlaySchemaScripts(ss);
+ }
-AdHocFormatter(MockConnStr, "options=libdbpp;database=%?");
-DB::ConnectionPtr
-Mock::openConnection() const
-{
- return std::make_shared<Connection>(MockConnStr::get(testDbName));
-}
+ AdHocFormatter(MockConnStr, "options=libdbpp;database=%?");
+ DB::ConnectionPtr
+ Mock::openConnection() const
+ {
+ return std::make_shared<Connection>(MockConnStr::get(testDbName));
+ }
-Mock::~Mock()
-{
- DropDatabase();
-}
+ Mock::~Mock()
+ {
+ DropDatabase();
+ }
}
-