PgTablespace now inherits from PgServerObject.

This commit is contained in:
eelke 2018-12-25 17:38:13 +01:00
parent 0b6c1a8544
commit aaa05f64ef
4 changed files with 21 additions and 17 deletions

View file

@ -1,24 +1,17 @@
#ifndef PGTABLESPACE_H
#define PGTABLESPACE_H
#include "PgServerObject.h"
#include <QString>
#include <libpq-fe.h>
#include <vector>
class PgTablespace {
class PgTablespace: public PgServerObject {
public:
Oid oid = InvalidOid;
QString name;
Oid owner = InvalidOid;
std::vector<QString> acl;
std::vector<QString> options;
PgTablespace();
bool operator==(Oid _oid) const { return oid == _oid; }
//bool operator==(const QString &n) const { return name == n; }
bool operator<(Oid _oid) const { return oid < _oid; }
bool operator<(const PgTablespace &rhs) const { return oid < rhs.oid; }
using PgServerObject::PgServerObject;
QString typeName() const override;
};
#endif // PGTABLESPACE_H