Rework of catalog objects. Several of them are now inheriting from common
base classes that implement common functionality.
This commit is contained in:
parent
840af1e0a9
commit
73c4cf4790
45 changed files with 340 additions and 265 deletions
22
pglablib/PgOwnedObject.h
Normal file
22
pglablib/PgOwnedObject.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef PGOWNEDOBJECT_H
|
||||
#define PGOWNEDOBJECT_H
|
||||
|
||||
#include <QString>
|
||||
#include <libpq-fe.h>
|
||||
#include <memory>
|
||||
|
||||
class PgDatabaseCatalog;
|
||||
class PgAuthId;
|
||||
class PgOwnedObject {
|
||||
public:
|
||||
void setOwnerOid(PgDatabaseCatalog& cat, Oid oid);
|
||||
|
||||
Oid ownerOid() const;
|
||||
QString ownerName() const;
|
||||
const PgAuthId* owner() const;
|
||||
private:
|
||||
Oid m_ownerOid = InvalidOid;
|
||||
const PgAuthId * m_owner;
|
||||
};
|
||||
|
||||
#endif // PGOWNEDOBJECT_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue