summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-01-01 15:51:09 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-01-01 15:51:09 +0000
commitbfa6fe41faae214c0ad2287418914197862628e8 (patch)
tree9d53cf78cf4698e529120a79f33dd802aa78c7a2
parentDo lots more work with compile time formatter instead runtime formatters (diff)
downloadlibdbpp-postgresql-bfa6fe41faae214c0ad2287418914197862628e8.tar.bz2
libdbpp-postgresql-bfa6fe41faae214c0ad2287418914197862628e8.tar.xz
libdbpp-postgresql-bfa6fe41faae214c0ad2287418914197862628e8.zip
Register mock db implementations
-rw-r--r--libpqpp/pq-mock.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpqpp/pq-mock.cpp b/libpqpp/pq-mock.cpp
index 44c8cc9..f72c01f 100644
--- a/libpqpp/pq-mock.cpp
+++ b/libpqpp/pq-mock.cpp
@@ -5,6 +5,8 @@
#include <selectcommand.h>
#include <selectcommandUtil.impl.h>
+NAMEDFACTORY("postgresql", PQ::Mock, DB::MockDatabaseFactory);
+
namespace PQ {
Mock::Mock(const std::string & masterdb, const std::string & name, const std::vector<boost::filesystem::path> & ss) :