30 lines
539 B
C++
30 lines
539 B
C++
#ifndef PGDATABASE_H
|
|
#define PGDATABASE_H
|
|
|
|
#include "PgServerObject.h"
|
|
#include <QString>
|
|
#include <libpq-fe.h>
|
|
|
|
class PgDatabase: public PgServerObject {
|
|
public:
|
|
|
|
Oid dba; // owner?
|
|
int encoding;
|
|
QString encodingString;
|
|
QString collate;
|
|
QString ctype;
|
|
bool isTemplate;
|
|
bool allowConn;
|
|
int connLimit;
|
|
Oid tablespace;
|
|
int64_t sizeBytes;
|
|
QString description;
|
|
|
|
using PgServerObject::PgServerObject;
|
|
|
|
bool isValid() const { return oid() != InvalidOid; }
|
|
|
|
QString typeName() const override;
|
|
};
|
|
|
|
#endif // PGDATABASE_H
|