Reorganize files in pglablib
The enitities and containers of the catalog now go into catalog subfolder Models go into model
This commit is contained in:
parent
56cbeea183
commit
f0c1035378
121 changed files with 226 additions and 183 deletions
33
pglablib/catalog/PgDatabase.h
Normal file
33
pglablib/catalog/PgDatabase.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#ifndef PGDATABASE_H
|
||||
#define PGDATABASE_H
|
||||
|
||||
#include "PgServerObject.h"
|
||||
#include <QString>
|
||||
#include <libpq-fe.h>
|
||||
|
||||
class PgDatabase: public PgServerObject {
|
||||
public:
|
||||
|
||||
// Oid oid = InvalidOid;
|
||||
// QString name;
|
||||
Oid dba; // owner?
|
||||
int encoding;
|
||||
QString collate;
|
||||
QString ctype;
|
||||
bool isTemplate;
|
||||
bool allowConn;
|
||||
int connLimit;
|
||||
Oid tablespace;
|
||||
QString acl;//"ARRAY";"YES"
|
||||
|
||||
using PgServerObject::PgServerObject;
|
||||
|
||||
bool isValid() const { return oid() != InvalidOid; }
|
||||
|
||||
// bool operator==(Oid _oid) const { return oid() == _oid; }
|
||||
// bool operator==(const QString &n) const { return objectName() == n; }
|
||||
// bool operator<(Oid _oid) const { return oid() < _oid; }
|
||||
// bool operator<(const PgDatabase &rhs) const { return oid() < rhs.oid(); }
|
||||
};
|
||||
|
||||
#endif // PGDATABASE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue