Bezig met crudmodel/tab

This commit is contained in:
eelke 2018-01-08 20:45:52 +01:00
parent ee321b3fb1
commit 14ab400ccb
15 changed files with 308 additions and 33 deletions

View file

@ -1,6 +1,8 @@
#include "PgClassContainer.h"
#include "Pgsql_Connection.h"
#include "Pgsql_Col.h"
#include "PgDatabaseCatalog.h"
#include "PgNamespaceContainer.h"
std::string PgClassContainer::getLoadQuery() const
{
@ -21,5 +23,10 @@ PgClass PgClassContainer::loadElem(const Pgsql::Row &row)
>> v.tuples_est >> v.toastrelid >> v.isshared >> v.persistence
>> v.kind >> v.hasoids >> v.ispopulated >> v.frozenxid >> v.minmxid
>> v.acl >> v.options;
auto cat = m_catalogue.lock();
auto ns = cat->namespaces()->getByKey(v.relnamespace);
v.relnamespace_name = ns.name;
v.system_namespace = ns.isSystemCatalog();
return v;
}