summaryrefslogtreecommitdiff
path: root/libpqpp
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
commitd1939afc7aa9d0a80517f5971915221c59935e33 (patch)
tree7ba04a5dc9b0b7fc9e50da4f8035cc54080ac7b1 /libpqpp
parentAdd the DB command options factory (diff)
downloadlibdbpp-postgresql-d1939afc7aa9d0a80517f5971915221c59935e33.tar.bz2
libdbpp-postgresql-d1939afc7aa9d0a80517f5971915221c59935e33.tar.xz
libdbpp-postgresql-d1939afc7aa9d0a80517f5971915221c59935e33.zip
Implement getting PQ command option settings from map
Diffstat (limited to 'libpqpp')
-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,