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
|
|
@ -1,26 +0,0 @@
|
|||
#ifndef PGSCHEMAOBJECT_H
|
||||
#define PGSCHEMAOBJECT_H
|
||||
|
||||
#include <QString>
|
||||
#include "PgDatabaseObject.h"
|
||||
#include <libpq-fe.h>
|
||||
|
||||
class PgNamespace;
|
||||
|
||||
/// Base class for database objects that are part of a specific schema
|
||||
class PgSchemaObject: public PgDatabaseObject {
|
||||
public:
|
||||
using PgDatabaseObject::PgDatabaseObject;
|
||||
|
||||
Oid schemaOid() const;
|
||||
void setSchemaOid(Oid oid);
|
||||
QString quotedSchemaName() const;
|
||||
/// Returns the schema name and object name with proper quotes
|
||||
QString fullyQualifiedQuotedObjectName() const;
|
||||
|
||||
const PgNamespace& ns() const;
|
||||
private:
|
||||
Oid m_schemaOid = InvalidOid;
|
||||
};
|
||||
|
||||
#endif // PGSCHEMAOBJECT_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue