pgLab/pglablib/catalog/PgDatabase.h

27 lines
463 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 collate;
QString ctype;
bool isTemplate;
bool allowConn;
int connLimit;
Oid tablespace;
using PgServerObject::PgServerObject;
bool isValid() const { return oid() != InvalidOid; }
QString typeName() const override;
};
#endif // PGDATABASE_H