diff options
author | randomdan <randomdan@localhost> | 2011-02-09 01:33:33 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-02-09 01:33:33 +0000 |
commit | acbf539574cb4caa21bdc1814f94815a081847c5 (patch) | |
tree | a924a2336db31dc2bd49de147fb767c323fbe9b6 /libdbpp/selectcommand.h | |
parent | Centralise the ICE splicer (diff) | |
download | libdbpp-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.h | 22 |
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 + |