From 3bfa3dafe335479aade55507719071f7dceb0d8c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 18 Nov 2020 16:55:18 +0000 Subject: Clang format --- libpqpp/pq-cursorselectcommand.h | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) (limited to 'libpqpp/pq-cursorselectcommand.h') 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 +#include "pq-selectbase.h" #include +#include 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 - - -- cgit v1.2.3