Moved several files from pglab project to pglablib

This commit is contained in:
eelke 2017-12-29 10:21:10 +01:00
parent 206d734ff5
commit f4538069cb
44 changed files with 45 additions and 44 deletions

View file

@ -1,40 +0,0 @@
#ifndef PGINDEX_H
#define PGINDEX_H
#include "Pgsql_declare.h"
#include <QString>
#include <vector>
class PgIndex {
public:
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> option;
QString exprs;
QString pred;
QString definition;
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