Overview of triggers extended with function name and arguments.
Did a lot of refactoring on the catalog to keep things clean.
This commit is contained in:
parent
35813ae926
commit
fcb191f2cc
44 changed files with 797 additions and 404 deletions
26
pglablib/PgSchemaObject.h
Normal file
26
pglablib/PgSchemaObject.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#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