PgAttribute loading + ColummnTableModel
Required enchancement to PgContainer to make multifield key work.
This commit is contained in:
parent
f9caadb59e
commit
e9d72d391d
32 changed files with 698 additions and 99 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue