Reorganize files in pglablib
The enitities and containers of the catalog now go into catalog subfolder Models go into model
This commit is contained in:
parent
56cbeea183
commit
f0c1035378
121 changed files with 226 additions and 183 deletions
36
pglablib/catalog/PgObject.cpp
Normal file
36
pglablib/catalog/PgObject.cpp
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#include "PgObject.h"
|
||||
#include "SqlFormattingUtils.h"
|
||||
|
||||
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());
|
||||
}
|
||||
|
||||
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