diff options
author | Dan Goodliffe <daniel.goodliffe@pressassociation.com> | 2017-01-04 17:54:29 +0000 |
---|---|---|
committer | Dan Goodliffe <daniel.goodliffe@pressassociation.com> | 2017-01-04 17:54:29 +0000 |
commit | 78c885ff3bcbb9c7e16f3fce29f1d0052aba3086 (patch) | |
tree | f67125295122714c8a0ad14e2f5a277e130dfd2a /libpqpp/pq-command.cpp | |
parent | Use bulk select not cursor select for getId, far fewer operations (diff) | |
download | libdbpp-postgresql-78c885ff3bcbb9c7e16f3fce29f1d0052aba3086.tar.bz2 libdbpp-postgresql-78c885ff3bcbb9c7e16f3fce29f1d0052aba3086.tar.xz libdbpp-postgresql-78c885ff3bcbb9c7e16f3fce29f1d0052aba3086.zip |
Add PQ specific command options to control page size and the use of bulk -v- cursor selects
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 af203cc..a6259df 100644 --- a/libpqpp/pq-command.cpp +++ b/libpqpp/pq-command.cpp @@ -25,6 +25,15 @@ PQ::Command::~Command() } } +PQ::CommandOptions::CommandOptions(std::size_t hash, + unsigned int ft, + bool uc) : + DB::CommandOptions(hash), + fetchTuples(ft), + useCursor(uc) +{ +} + AdHocFormatter(PQCommandParamName, "$%?"); void PQ::Command::prepareSql(std::stringstream & psql, const std::string & sql) const |