Added the list of installed language to the catalog. The ProcTableModel now returns the owner name and language name instead of the oids.

This commit is contained in:
eelke 2018-12-17 21:51:14 +01:00
parent c0a11f9b3b
commit f692569d27
11 changed files with 118 additions and 18 deletions

View file

@ -15,6 +15,7 @@
#include "PgProcContainer.h"
#include "PgCollationContainer.h"
#include "PgInheritsContainer.h"
#include "PgLanguageContainer.h"
#include "Pgsql_Connection.h"
#include "Pgsql_oids.h"
@ -151,6 +152,9 @@ void PgDatabaseCatalog::loadAll(Pgsql::Connection &conn,
return;
// Load database objects
load2(m_languages, conn);
if (progress_callback && !progress_callback(++n, count))
return;
load2(m_namespaces, conn);
if (progress_callback && !progress_callback(++n, count))
return;
@ -302,3 +306,8 @@ std::shared_ptr<const PgInheritsContainer> PgDatabaseCatalog::inherits() const
{
return m_inherits;
}
std::shared_ptr<const PgLanguageContainer> PgDatabaseCatalog::languages() const
{
return m_languages;
}