Added typeName function to PgObject as it might be useful for building generic functions.

This commit is contained in:
eelke 2018-12-24 11:31:56 +01:00
parent b210c570fc
commit 3f337b2cca
21 changed files with 83 additions and 15 deletions

View file

@ -8,8 +8,6 @@
class PgDatabase: public PgServerObject {
public:
// Oid oid = InvalidOid;
// QString name;
Oid dba; // owner?
int encoding;
QString collate;
@ -24,10 +22,7 @@ public:
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(); }
QString typeName() const override;
};
#endif // PGDATABASE_H