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
30
pglablib/PgSchemaObject.cpp
Normal file
30
pglablib/PgSchemaObject.cpp
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#include "PgSchemaObject.h"
|
||||
#include "PgDatabaseCatalog.h"
|
||||
#include "PgNamespace.h"
|
||||
#include "PgNamespaceContainer.h"
|
||||
#include "SqlFormattingUtils.h"
|
||||
|
||||
Oid PgSchemaObject::schemaOid() const
|
||||
{
|
||||
return m_schemaOid;
|
||||
}
|
||||
|
||||
void PgSchemaObject::setSchemaOid(Oid oid)
|
||||
{
|
||||
m_schemaOid = oid;
|
||||
}
|
||||
|
||||
QString PgSchemaObject::quotedSchemaName() const
|
||||
{
|
||||
return quoteIdent(ns().name);
|
||||
}
|
||||
|
||||
QString PgSchemaObject::fullyQualifiedQuotedObjectName() const
|
||||
{
|
||||
return quotedSchemaName() + "." + quotedObjectName();
|
||||
}
|
||||
|
||||
const PgNamespace& PgSchemaObject::ns() const
|
||||
{
|
||||
return *catalog().namespaces()->getByKey(m_schemaOid);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue