.
This commit is contained in:
parent
8f1ba8130c
commit
1fe7d3c56d
8 changed files with 410 additions and 4 deletions
6
pglab/PgIndex.cpp
Normal file
6
pglab/PgIndex.cpp
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#include "PgIndex.h"
|
||||
|
||||
PgIndex::PgIndex()
|
||||
{
|
||||
|
||||
}
|
||||
34
pglab/PgIndex.h
Normal file
34
pglab/PgIndex.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#ifndef PGINDEX_H
|
||||
#define PGINDEX_H
|
||||
|
||||
#include "Pgsql_declare.h"
|
||||
#include <QString>
|
||||
#include <vector>
|
||||
|
||||
class PgIndex {
|
||||
public:
|
||||
|
||||
Oid indexrelid;
|
||||
Oid indrelid;
|
||||
int16_t indnatts;
|
||||
bool indisunique;
|
||||
bool indisprimary;
|
||||
bool indisexclusion;
|
||||
bool indimmediate;
|
||||
bool indisclustered;
|
||||
bool indisvalid;
|
||||
bool indcheckxmin;
|
||||
bool indisready;
|
||||
bool indislive;
|
||||
bool indisreplident;
|
||||
std::vector<int16_t> indkey;
|
||||
std::vector<Oid> indcollation;
|
||||
std::vector<Oid> indclass;
|
||||
std::vector<int16_t> indoption;
|
||||
QString indexprs;
|
||||
QString indpred;
|
||||
|
||||
PgIndex();
|
||||
};
|
||||
|
||||
#endif // PGINDEX_H
|
||||
|
|
@ -9,6 +9,8 @@ QT += core gui
|
|||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets sql
|
||||
|
||||
QMAKE_CXXFLAGS += /std:c++17
|
||||
|
||||
TARGET = pglab
|
||||
TEMPLATE = app
|
||||
|
||||
|
|
@ -76,7 +78,8 @@ SOURCES += main.cpp\
|
|||
ColumnTableModel.cpp \
|
||||
PgAttribute.cpp \
|
||||
PgContainer.cpp \
|
||||
PgAttributeContainer.cpp
|
||||
PgAttributeContainer.cpp \
|
||||
PgIndex.cpp
|
||||
|
||||
HEADERS += \
|
||||
QueryResultModel.h \
|
||||
|
|
@ -126,7 +129,8 @@ HEADERS += \
|
|||
PgNamespaceContainer.h \
|
||||
ColumnTableModel.h \
|
||||
PgAttribute.h \
|
||||
PgAttributeContainer.h
|
||||
PgAttributeContainer.h \
|
||||
PgIndex.h
|
||||
|
||||
FORMS += mainwindow.ui \
|
||||
DatabaseWindow.ui \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue