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
|
|
@ -3,20 +3,20 @@
|
|||
#include "PgClassContainer.h"
|
||||
#include "PgAmContainer.h"
|
||||
|
||||
PgIndex::PgIndex() = default;
|
||||
|
||||
PgIndex::PgIndex(std::weak_ptr<PgDatabaseCatalog> cat)
|
||||
: PgObject(cat)
|
||||
{}
|
||||
|
||||
QString PgIndex::getAm() const
|
||||
{
|
||||
auto cat = catalog.lock();
|
||||
auto&& cat = catalog();
|
||||
QString result;
|
||||
if (cat) {
|
||||
auto idxcls = cat->classes()->getByKey(indexrelid);
|
||||
auto am = cat->ams()->getByKey(idxcls.am);
|
||||
result = am.name;
|
||||
auto idxcls = cat.classes()->getByKey(indexrelid);
|
||||
if (idxcls) {
|
||||
auto am = cat.ams()->getByKey(idxcls->am);
|
||||
if (am)
|
||||
result = am->name;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
QString PgIndex::objectName() const
|
||||
{
|
||||
return getAm();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue