diff options
author | randomdan <randomdan@localhost> | 2006-07-08 16:32:05 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2006-07-08 16:32:05 +0000 |
commit | 2a1fa15d8baa4eda37e17b2e9362f8bde17a939d (patch) | |
tree | 09386e52320b7c52a521ab56fc7553896e639dcd /libodbcpp/selectcommand.h | |
download | libdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.tar.bz2 libdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.tar.xz libdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.zip |
libcodbcpp initial release
Diffstat (limited to 'libodbcpp/selectcommand.h')
-rw-r--r-- | libodbcpp/selectcommand.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libodbcpp/selectcommand.h b/libodbcpp/selectcommand.h new file mode 100644 index 0000000..fee1afc --- /dev/null +++ b/libodbcpp/selectcommand.h @@ -0,0 +1,23 @@ +#ifndef ODBC_SELECTCOMMAND_H +#define ODBC_SELECTCOMMAND_H + +#include "command.h" + +namespace ODBC { + class Column; + class SelectCommand : public Command { + typedef std::vector<Column*> Columns; + public: + SelectCommand (const Connection&, String sql); + ~SelectCommand(); + bool fetch(); + const Column& operator[](unsigned int col) const; + unsigned int columnCount() const; + private: + void execute(); + Columns columns; + }; +} + +#endif + |