summaryrefslogtreecommitdiff
path: root/libpqpp/pq-selectcommand.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-04-24 14:34:16 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-04-24 14:40:20 +0100
commiteab3a1beba707e9f531a250a5c74a6ba462aa4fc (patch)
tree0bac5aa1211d282f996d2b9bf3b72d81717df5e9 /libpqpp/pq-selectcommand.h
parentDon't attempt to close cursors when in failed transaction (it's failed and re... (diff)
downloadlibdbpp-postgresql-eab3a1beba707e9f531a250a5c74a6ba462aa4fc.tar.bz2
libdbpp-postgresql-eab3a1beba707e9f531a250a5c74a6ba462aa4fc.tar.xz
libdbpp-postgresql-eab3a1beba707e9f531a250a5c74a6ba462aa4fc.zip
Rename SelectCommand to CursorSelectCommand
Diffstat (limited to 'libpqpp/pq-selectcommand.h')
-rw-r--r--libpqpp/pq-selectcommand.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/libpqpp/pq-selectcommand.h b/libpqpp/pq-selectcommand.h
deleted file mode 100644
index f2e0c74..0000000
--- a/libpqpp/pq-selectcommand.h
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifndef PQ_SELECTCOMMAND_H
-#define PQ_SELECTCOMMAND_H
-
-#include <selectcommand.h>
-#include "pq-command.h"
-#include <vector>
-#include <map>
-
-namespace PQ {
- class Connection;
- class Column;
- class SelectCommand : public DB::SelectCommand, public Command {
- public:
- SelectCommand(Connection *, const std::string & sql, unsigned int no);
- virtual ~SelectCommand();
-
- bool fetch() override;
- void execute() override;
-
- private:
- void fetchTuples();
- std::string mkdeclare() const;
- std::string mkfetch() const;
- std::string mkclose() const;
-
- mutable bool executed;
- mutable bool txOpened;
- int nTuples, tuple, fTuples;
- PGresult * execRes;
- std::string s_declare;
- std::string s_fetch;
- std::string s_close;
-
- friend class Column;
- };
-}
-
-#endif
-
-