Loading of index definitions
This commit is contained in:
parent
db75d9ed50
commit
aef9b914b1
7 changed files with 95 additions and 27 deletions
|
|
@ -8,27 +8,32 @@
|
|||
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;
|
||||
Oid indexrelid = InvalidOid;
|
||||
Oid relid = InvalidOid;
|
||||
int16_t natts = 0;
|
||||
bool isunique = false;
|
||||
bool isprimary = false;
|
||||
bool isexclusion = false;
|
||||
bool immediate = false;
|
||||
bool isclustered = false;
|
||||
bool isvalid = false;
|
||||
bool checkxmin = false;
|
||||
bool isready = false;
|
||||
bool islive = false;
|
||||
bool isreplident = false;
|
||||
std::vector<int16_t> key;
|
||||
std::vector<Oid> collation;
|
||||
std::vector<Oid> indclass;
|
||||
std::vector<int16_t> indoption;
|
||||
QString indexprs;
|
||||
QString indpred;
|
||||
std::vector<int16_t> option;
|
||||
QString exprs;
|
||||
QString pred;
|
||||
|
||||
PgIndex();
|
||||
|
||||
bool operator==(Oid _oid) const { return indexrelid == _oid; }
|
||||
//bool operator==(const QString &n) const { return name == n; }
|
||||
bool operator<(Oid _oid) const { return indexrelid < _oid; }
|
||||
bool operator<(const PgIndex &rhs) const { return indexrelid < rhs.indexrelid; }
|
||||
};
|
||||
|
||||
#endif // PGINDEX_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue