summaryrefslogtreecommitdiff
path: root/libdbpp/selectcommand.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-02-09 01:33:33 +0000
committerrandomdan <randomdan@localhost>2011-02-09 01:33:33 +0000
commitacbf539574cb4caa21bdc1814f94815a081847c5 (patch)
treea924a2336db31dc2bd49de147fb767c323fbe9b6 /libdbpp/selectcommand.h
parentCentralise the ICE splicer (diff)
downloadlibdbpp-acbf539574cb4caa21bdc1814f94815a081847c5.tar.bz2
libdbpp-acbf539574cb4caa21bdc1814f94815a081847c5.tar.xz
libdbpp-acbf539574cb4caa21bdc1814f94815a081847c5.zip
Fix the build system to do dependencies properly
Break down libodbcpp into a set of base classes; libdbpp Add a native PostgreSQL implementation of libdbpp; libpqpp Extend project2 rdbms stuff to work with generic connectors Update datasources to specify connector type Build libmisc as .so
Diffstat (limited to 'libdbpp/selectcommand.h')
-rw-r--r--libdbpp/selectcommand.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/libdbpp/selectcommand.h b/libdbpp/selectcommand.h
new file mode 100644
index 0000000..943e724
--- /dev/null
+++ b/libdbpp/selectcommand.h
@@ -0,0 +1,22 @@
+#ifndef DB_SELECTCOMMAND_H
+#define DB_SELECTCOMMAND_H
+
+#include "command.h"
+
+namespace DB {
+ class Column;
+ class SelectCommand : public virtual Command {
+ public:
+ SelectCommand(const std::string & sql);
+ ~SelectCommand();
+ virtual bool fetch() = 0;
+ virtual void execute() = 0;
+ virtual const Column & operator[](unsigned int col) const = 0;
+ virtual const Column & operator[](const Glib::ustring &) const = 0;
+ virtual unsigned int columnCount() const = 0;
+ virtual unsigned int getOrdinal(const Glib::ustring &) const = 0;
+ };
+}
+
+#endif
+