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

24
pglablib/PgNamespace.h Normal file
View file

@ -0,0 +1,24 @@
#ifndef PGNAMESPACE_H
#define PGNAMESPACE_H
#include <QString>
#include <libpq-fe.h>
class PgNamespace {
public:
PgNamespace();
Oid oid = InvalidOid;
QString name;
Oid owner = InvalidOid;
QString acl;
bool operator==(Oid _oid) const { return oid == _oid; }
bool operator==(const QString &n) const { return name == n; }
bool operator<(Oid _oid) const { return oid < _oid; }
bool operator<(const PgNamespace &rhs) const { return oid < rhs.oid; }
bool isSystemCatalog() const;
};
#endif // PGNAMESPACE_H