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
commit573878f6b045d1834d59dc6016dd16ffb1659067 (patch)
tree8194bc854a6492bfbdd18cc1734730ccb405d912
parentDo lots more work with compile time formatter instead runtime formatters (diff)
downloadlibdbpp-postgresql-573878f6b045d1834d59dc6016dd16ffb1659067.tar.bz2
libdbpp-postgresql-573878f6b045d1834d59dc6016dd16ffb1659067.tar.xz
libdbpp-postgresql-573878f6b045d1834d59dc6016dd16ffb1659067.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) :