Abstract IResult interface for Result

This is to allow faking the result for testing the CrudModel.
This commit is contained in:
eelke 2022-02-06 12:19:43 +01:00
parent 06504ecc1f
commit c346430b25
6 changed files with 103 additions and 67 deletions

View file

@ -5,7 +5,7 @@
namespace Pgsql {
class Result;
class IResult;
/** \brief A reference to a specific row from a result.
*
@ -59,7 +59,7 @@ namespace Pgsql {
int m_col;
};
Row(const Result &result, int row);
Row(const IResult &result, int row);
bool next();
bool operator==(const Row& rhs) const;
@ -75,7 +75,7 @@ namespace Pgsql {
const_iterator end() const;
private:
const Result& m_result;
const IResult& m_result;
int m_row;
};