diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-08 15:38:38 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-08 20:18:08 +0000 |
commit | 380e5b6af7bbd5f92771b81ba69e7a30ed9a2f52 (patch) | |
tree | 826c69554e9bb487bf69ee4a4d00fdc652b9331a /libpqpp/pq-command.cpp | |
parent | Minor updates/tweaks to increase test coverage (diff) | |
download | libdbpp-postgresql-380e5b6af7bbd5f92771b81ba69e7a30ed9a2f52.tar.bz2 libdbpp-postgresql-380e5b6af7bbd5f92771b81ba69e7a30ed9a2f52.tar.xz libdbpp-postgresql-380e5b6af7bbd5f92771b81ba69e7a30ed9a2f52.zip |
Add the DB command options factory
Diffstat (limited to 'libpqpp/pq-command.cpp')
-rw-r--r-- | libpqpp/pq-command.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libpqpp/pq-command.cpp b/libpqpp/pq-command.cpp index 5ff83f0..1db81a6 100644 --- a/libpqpp/pq-command.cpp +++ b/libpqpp/pq-command.cpp @@ -4,6 +4,9 @@ #include <string.h> #include <compileTimeFormatter.h> #include <boost/date_time/posix_time/posix_time.hpp> +#include <factory.h> + +NAMEDFACTORY("postgresql", PQ::CommandOptions, DB::CommandOptionsFactory); AdHocFormatter(PQCommondStatement, "pStatement_id%?"); PQ::Command::Command(Connection * conn, const std::string & sql, const DB::CommandOptions * opts) : @@ -26,6 +29,12 @@ PQ::Command::~Command() } } +PQ::CommandOptions::CommandOptions(std::size_t hash, const DB::CommandOptionsMap &) : + DB::CommandOptions(hash) +{ + +} + PQ::CommandOptions::CommandOptions(std::size_t hash, unsigned int ft, bool uc) : |