PgAttribute loading + ColummnTableModel

Required enchancement to PgContainer to make multifield key work.
This commit is contained in:
eelke 2017-12-12 20:13:53 +01:00
parent f9caadb59e
commit e9d72d391d
32 changed files with 698 additions and 99 deletions

View file

@ -7,7 +7,7 @@ namespace Pgsql {
class Col {
public:
explicit Col(Pgsql::Row &r)
explicit Col(const Pgsql::Row &r)
: row(r)
{}
@ -17,16 +17,10 @@ namespace Pgsql {
return row.get(++col);
}
private:
Pgsql::Row &row;
const Pgsql::Row &row;
int col = -1;
};
// template <typename T>
// void operator<<(T &s, Col &c)
// {
// s << c.nextValue();
// }
template <typename T>
Col& operator>>(Col &c, T &s)
{