Need a central piece to manage the catalogue data per database to prevent loading this multiple times. MasterController is now also used to enable reopening the connection manager from a query window after the connection manager has been closed.
26 lines
469 B
C++
26 lines
469 B
C++
#ifndef PGCLASS_H
|
|
#define PGCLASS_H
|
|
|
|
#include <QString>
|
|
#include <pgsql/libpq-fe.h>
|
|
|
|
class PgClass {
|
|
public:
|
|
PgClass();
|
|
|
|
Oid oid = InvalidOid;
|
|
QString relname;
|
|
Oid relnamespace = InvalidOid;
|
|
Oid reltype = InvalidOid;
|
|
Oid reloftype = InvalidOid;
|
|
Oid relowner = InvalidOid;
|
|
Oid relam = InvalidOid;
|
|
Oid relfilename = InvalidOid;
|
|
Oid reltablespace = InvalidOid;
|
|
int relpages_est = 0;
|
|
float reltuples_est = 0;
|
|
int relallvisible = 0;
|
|
|
|
};
|
|
|
|
#endif // PGCLASS_H
|