2017-02-01 18:01:02 +01:00
|
|
|
|
#ifndef PGNAMESPACE_H
|
|
|
|
|
|
#define PGNAMESPACE_H
|
|
|
|
|
|
|
2018-11-25 19:45:06 +01:00
|
|
|
|
#include "PgDatabaseObject.h"
|
2017-02-01 18:01:02 +01:00
|
|
|
|
#include <QString>
|
2017-08-23 13:27:23 +02:00
|
|
|
|
#include <libpq-fe.h>
|
2017-02-01 18:01:02 +01:00
|
|
|
|
|
2018-11-25 19:45:06 +01:00
|
|
|
|
|
|
|
|
|
|
/// Object representing a namespace within a database
|
|
|
|
|
|
class PgNamespace: public PgDatabaseObject {
|
2017-02-01 18:01:02 +01:00
|
|
|
|
public:
|
|
|
|
|
|
|
2018-11-25 19:45:06 +01:00
|
|
|
|
// Oid oid = InvalidOid;
|
|
|
|
|
|
// QString name;
|
2017-02-01 18:01:02 +01:00
|
|
|
|
Oid owner = InvalidOid;
|
|
|
|
|
|
QString acl;
|
2017-12-12 20:13:53 +01:00
|
|
|
|
|
2018-11-25 19:45:06 +01:00
|
|
|
|
using PgDatabaseObject::PgDatabaseObject;
|
|
|
|
|
|
|
|
|
|
|
|
// bool operator==(Oid _oid) const { return oid == _oid; }
|
|
|
|
|
|
// bool operator==(const QString &n) const { return objectName() == n; }
|
|
|
|
|
|
// bool operator<(Oid _oid) const { return oid < _oid; }
|
|
|
|
|
|
// bool operator<(const PgNamespace &rhs) const { return oid < rhs.oid; }
|
2017-12-12 20:13:53 +01:00
|
|
|
|
|
|
|
|
|
|
bool isSystemCatalog() const;
|
2017-02-01 18:01:02 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // PGNAMESPACE_H
|