The catalogue now loads the list of databases en there is a table model that can show this data.

This commit is contained in:
eelke 2017-02-12 14:03:42 +01:00
parent a9430bca1a
commit 20af12535e
22 changed files with 504 additions and 118 deletions

View file

@ -10,6 +10,7 @@ namespace Pgsql {
}
class PgTypeContainer;
class PgDatabaseContainer;
class PgsqlDatabaseCatalogue {
public:
@ -22,10 +23,13 @@ public:
void loadAll(Pgsql::Connection &conn);
void loadTypes(Pgsql::Connection &conn);
void loadDatabases(Pgsql::Connection &conn);
const PgTypeContainer* types() const { return m_types; }
const PgDatabaseContainer *databases() const { return m_databases; }
private:
PgTypeContainer *m_types = nullptr;
PgDatabaseContainer *m_databases = nullptr;
};
#endif // PGSQLDATABASECATALOGUE_H