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:
|
|
|
|
|
|
Oid owner = InvalidOid;
|
|
|
|
|
|
QString acl;
|
2017-12-12 20:13:53 +01:00
|
|
|
|
|
2018-11-25 19:45:06 +01:00
|
|
|
|
using PgDatabaseObject::PgDatabaseObject;
|
|
|
|
|
|
|
2017-12-12 20:13:53 +01:00
|
|
|
|
bool isSystemCatalog() const;
|
2018-12-24 11:31:56 +01:00
|
|
|
|
QString typeName() const override;
|
2017-02-01 18:01:02 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // PGNAMESPACE_H
|