Restructured locations of source.
This commit is contained in:
parent
78a4c6d730
commit
7c4e8e95e8
151 changed files with 1 additions and 0 deletions
36
src/pgsql/Pgsql_Row.cpp
Normal file
36
src/pgsql/Pgsql_Row.cpp
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#include "Pgsql_Row.h"
|
||||
#include "Pgsql_Result.h"
|
||||
|
||||
using namespace Pgsql;
|
||||
|
||||
Row::Row(const Result &result, int row)
|
||||
: m_result(result)
|
||||
, m_row(row)
|
||||
{}
|
||||
|
||||
bool Row::next()
|
||||
{
|
||||
if (m_row < m_result.rows()) {
|
||||
++m_row;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Row::operator==(const Row& rhs) const
|
||||
{
|
||||
return &m_result == &rhs.m_result
|
||||
&& m_row == rhs.m_row;
|
||||
}
|
||||
|
||||
|
||||
Value Row::get(int col) const
|
||||
{
|
||||
return m_result.get(col, m_row);
|
||||
}
|
||||
|
||||
//Value Row::get(const char *colname) const
|
||||
//{
|
||||
|
||||
//}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue