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
20
pglab/PgAttributeContainer.h
Normal file
20
pglab/PgAttributeContainer.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef PGATTRIBUTECONTAINER_H
|
||||
#define PGATTRIBUTECONTAINER_H
|
||||
|
||||
#include "PgContainer.h"
|
||||
#include "PgAttribute.h"
|
||||
#include "Pgsql_declare.h"
|
||||
#include <vector>
|
||||
|
||||
class PgAttributeContainer : public PgContainer<PgAttribute, PgAttribute::Key> {
|
||||
public:
|
||||
using PgContainer<PgAttribute, PgAttribute::Key>::PgContainer;
|
||||
|
||||
virtual std::string getLoadQuery() const override;
|
||||
|
||||
std::vector<PgAttribute> getColumnsForRelation(Oid oid) const;
|
||||
protected:
|
||||
PgAttribute loadElem(const Pgsql::Row &row) override;
|
||||
};
|
||||
|
||||
#endif // PGATTRIBUTECONTAINER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue