22 lines
411 B
C++
22 lines
411 B
C++
#include "PgIndex.h"
|
|
#include "PgDatabaseCatalog.h"
|
|
#include "PgClassContainer.h"
|
|
#include "PgAmContainer.h"
|
|
|
|
QString PgIndex::getAm() const
|
|
{
|
|
auto&& cat = catalog();
|
|
QString result;
|
|
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();
|
|
}
|