Builds on windows again
This commit is contained in:
parent
33cf39b799
commit
bebb3391c3
160 changed files with 138 additions and 117 deletions
31
pgsql/Pgsql_Row.h
Normal file
31
pgsql/Pgsql_Row.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef PGSQL_ROW_H
|
||||
#define PGSQL_ROW_H
|
||||
|
||||
#include "Pgsql_Value.h"
|
||||
|
||||
namespace Pgsql {
|
||||
|
||||
class Result;
|
||||
|
||||
/** \brief A reference to a specific row from a result.
|
||||
*
|
||||
* As it is a reference its contents won't be valid after its associated result has
|
||||
* been destroyed.
|
||||
*/
|
||||
class Row {
|
||||
public:
|
||||
Row(const Result &result, int row);
|
||||
bool next();
|
||||
|
||||
bool operator==(const Row& rhs) const;
|
||||
Value get(int col) const;
|
||||
//Value get(const char *colname) const;
|
||||
//bool get(int col, QString &s);
|
||||
private:
|
||||
const Result& m_result;
|
||||
int m_row;
|
||||
};
|
||||
|
||||
} // end namespace Pgsql
|
||||
|
||||
#endif // PGSQL_ROW_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue