pg_classes can be loaded now, used in TablesTableModel for overview of tables in database.
This commit is contained in:
parent
43e6042794
commit
6466062cc8
23 changed files with 524 additions and 173 deletions
|
|
@ -8,7 +8,7 @@
|
|||
#include <libpq-fe.h>
|
||||
|
||||
|
||||
class PgDatabaseCatalogue;
|
||||
class PgDatabaseCatalog;
|
||||
|
||||
class IPgContainter {
|
||||
public:
|
||||
|
|
@ -23,7 +23,7 @@ class PgContainer: public IPgContainter {
|
|||
public:
|
||||
using t_Container = std::vector<T>; ///< Do not assume it will stay a vector only expect bidirectional access
|
||||
|
||||
explicit PgContainer(std::weak_ptr<PgDatabaseCatalogue> cat)
|
||||
explicit PgContainer(std::weak_ptr<PgDatabaseCatalog> cat)
|
||||
: m_catalogue(cat)
|
||||
{}
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ public:
|
|||
return m_container.at(idx);
|
||||
}
|
||||
protected:
|
||||
std::weak_ptr<PgDatabaseCatalogue> m_catalogue;
|
||||
std::weak_ptr<PgDatabaseCatalog> m_catalogue;
|
||||
t_Container m_container;
|
||||
private:
|
||||
T m_invalidInstance;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue