From d6e8b1c5a787641dc63fc50c9b35cc7427a33b65 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 4 Jan 2017 17:54:29 +0000 Subject: Add PQ specific command options to control page size and the use of bulk -v- cursor selects --- libpqpp/pq-command.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libpqpp/pq-command.h') diff --git a/libpqpp/pq-command.h b/libpqpp/pq-command.h index 2c0bf14..056706e 100644 --- a/libpqpp/pq-command.h +++ b/libpqpp/pq-command.h @@ -4,9 +4,21 @@ #include #include #include +#include namespace PQ { class Connection; + + class DLL_PUBLIC CommandOptions : public DB::CommandOptions { + public: + CommandOptions(std::size_t hash, + unsigned int fetchTuples = 35, + bool useCursor = true); + + unsigned int fetchTuples; + bool useCursor; + }; + class Command : public virtual DB::Command { public: Command(Connection *, const std::string & sql, unsigned int no); -- cgit v1.2.3