The oid column is now shown for tables that are "with oids".
This commit is contained in:
parent
172e2bcd1d
commit
7051ef2efc
5 changed files with 23 additions and 9 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define COLUMNTABLEMODEL_H
|
||||
|
||||
#include "BaseTableModel.h"
|
||||
#include "PgClass.h"
|
||||
#include "PgIndex.h"
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
|
@ -22,7 +23,7 @@ public:
|
|||
|
||||
|
||||
using BaseTableModel::BaseTableModel;
|
||||
void setData(std::shared_ptr<const PgDatabaseCatalog> cat, Oid table_oid);
|
||||
void setData(std::shared_ptr<const PgDatabaseCatalog> cat, const PgClass &table);
|
||||
|
||||
// Header:
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||
|
|
@ -39,6 +40,7 @@ protected:
|
|||
using t_Columns = std::vector<PgAttribute>;
|
||||
|
||||
std::shared_ptr<const PgDatabaseCatalog> m_catalog;
|
||||
PgClass m_table;
|
||||
t_Columns m_columns;
|
||||
std::vector<PgIndex> m_indexes;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue