diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-08 16:14:16 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-08 20:48:31 +0000 |
commit | d1939afc7aa9d0a80517f5971915221c59935e33 (patch) | |
tree | 7ba04a5dc9b0b7fc9e50da4f8035cc54080ac7b1 | |
parent | Add the DB command options factory (diff) | |
download | libdbpp-postgresql-d1939afc7aa9d0a80517f5971915221c59935e33.tar.bz2 libdbpp-postgresql-d1939afc7aa9d0a80517f5971915221c59935e33.tar.xz libdbpp-postgresql-d1939afc7aa9d0a80517f5971915221c59935e33.zip |
Implement getting PQ command option settings from map
-rw-r--r-- | libpqpp/pq-command.cpp | 7 |
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, |