diff options
Diffstat (limited to 'libpqpp/pq-cursorselectcommand.h')
-rw-r--r-- | libpqpp/pq-cursorselectcommand.h | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/libpqpp/pq-cursorselectcommand.h b/libpqpp/pq-cursorselectcommand.h index f75c36b..853be47 100644 --- a/libpqpp/pq-cursorselectcommand.h +++ b/libpqpp/pq-cursorselectcommand.h @@ -1,34 +1,33 @@ #ifndef PQ_CURSORSELECTCOMMAND_H #define PQ_CURSORSELECTCOMMAND_H -#include "pq-selectbase.h" #include "pq-command.h" -#include <vector> +#include "pq-selectbase.h" #include <map> +#include <vector> namespace PQ { class Connection; class Column; class CursorSelectCommand : public SelectBase, public Command { - public: - CursorSelectCommand(Connection *, const std::string & sql, const PQ::CommandOptionsCPtr &, const DB::CommandOptionsCPtr &); - virtual ~CursorSelectCommand(); - - bool fetch() override; - void execute() override; - - private: - void fetchTuples(); - std::string mkdeclare() const; - - mutable bool executed; - unsigned int fTuples; - std::string s_declare; - std::string s_fetch; - std::string s_close; + public: + CursorSelectCommand( + Connection *, const std::string & sql, const PQ::CommandOptionsCPtr &, const DB::CommandOptionsCPtr &); + virtual ~CursorSelectCommand(); + + bool fetch() override; + void execute() override; + + private: + void fetchTuples(); + std::string mkdeclare() const; + + mutable bool executed; + unsigned int fTuples; + std::string s_declare; + std::string s_fetch; + std::string s_close; }; } #endif - - |