27 lines
622 B
C
27 lines
622 B
C
|
|
#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
|