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,13 +1,25 @@
|
|||
#include "PgObject.h"
|
||||
#include "SqlFormattingUtils.h"
|
||||
|
||||
PgObject::PgObject(PgDatabaseCatalog& cat)
|
||||
PgObject::PgObject(PgDatabaseCatalog& cat, Oid oid, const QString &name)
|
||||
: m_catalog(&cat)
|
||||
, m_oid(oid)
|
||||
, m_name(name)
|
||||
{}
|
||||
|
||||
PgObject::~PgObject()
|
||||
{}
|
||||
|
||||
Oid PgObject::oid() const
|
||||
{
|
||||
return m_oid;
|
||||
}
|
||||
|
||||
const QString& PgObject::objectName() const
|
||||
{
|
||||
return m_name;
|
||||
}
|
||||
|
||||
QString PgObject::quotedObjectName() const
|
||||
{
|
||||
return quoteIdent(objectName());
|
||||
|
|
@ -17,3 +29,8 @@ const PgDatabaseCatalog& PgObject::catalog() const
|
|||
{
|
||||
return *m_catalog;
|
||||
}
|
||||
|
||||
void test(PgObject a, PgObject b)
|
||||
{
|
||||
a = b;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue