PgTablespace now inherits from PgServerObject.
This commit is contained in:
parent
0b6c1a8544
commit
aaa05f64ef
4 changed files with 21 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue