summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-01-08 16:14:16 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-01-08 20:48:31 +0000
commit6030f8caab731fe3806c1ca1e5b50e6167d9c4e2 (patch)
tree7594aacd1b477171648f41896b8cf6010ecbc992
parentAdd the DB command options factory (diff)
downloadlibdbpp-postgresql-6030f8caab731fe3806c1ca1e5b50e6167d9c4e2.tar.bz2
libdbpp-postgresql-6030f8caab731fe3806c1ca1e5b50e6167d9c4e2.tar.xz
libdbpp-postgresql-6030f8caab731fe3806c1ca1e5b50e6167d9c4e2.zip
Implement getting PQ command option settings from map
-rw-r--r--libpqpp/pq-command.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/libpqpp/pq-command.cpp b/libpqpp/pq-command.cpp
index 1db81a6..f31d78a 100644
--- a/libpqpp/pq-command.cpp
+++ b/libpqpp/pq-command.cpp
@@ -29,10 +29,11 @@ PQ::Command::~Command()
}
}
-PQ::CommandOptions::CommandOptions(std::size_t hash, const DB::CommandOptionsMap &) :
- DB::CommandOptions(hash)
+PQ::CommandOptions::CommandOptions(std::size_t hash, const DB::CommandOptionsMap & map) :
+ DB::CommandOptions(hash),
+ fetchTuples(get(map, "page-size", 35)),
+ useCursor(!isSet(map, "no-cursor"))
{
-
}
PQ::CommandOptions::CommandOptions(std::size_t hash,