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
|
|
@ -2,9 +2,6 @@
|
|||
#include "Pgsql_Connection.h"
|
||||
#include "Pgsql_Col.h"
|
||||
|
||||
//PgDatabaseContainer::PgDatabaseContainer(PgDatabaseCatalogue *cat)
|
||||
// : PgContainer<PgDatabase>(cat)
|
||||
//{}
|
||||
|
||||
std::string PgDatabaseContainer::getLoadQuery() const
|
||||
{
|
||||
|
|
@ -20,17 +17,6 @@ void PgDatabaseContainer::load(const Pgsql::Result &res)
|
|||
for (auto row : res) {
|
||||
Pgsql::Col col(row);
|
||||
PgDatabase v;
|
||||
// v.oid << row.get(0); // InvalidOid;
|
||||
// v.name << row.get(1);
|
||||
// v.dba << row.get(2); // owner?
|
||||
// v.encoding << row.get(3);
|
||||
// v.collate << row.get(4);
|
||||
// v.ctype << row.get(5);
|
||||
// v.isTemplate << row.get(6);
|
||||
// v.allowConn << row.get(7);
|
||||
// v.connLimit << row.get(8);
|
||||
// v.tablespace << row.get(9);
|
||||
// v.acl << row.get(10);
|
||||
col >> v.oid >> v.name >> v.dba >> v.encoding >> v.collate >> v.ctype >> v.isTemplate
|
||||
>> v.allowConn >> v.connLimit >> v.tablespace >> v.acl;
|
||||
m_container.push_back(v);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue