2017-02-18 12:05:48 +01:00
|
|
|
|
#ifndef PGAUTHID_H
|
|
|
|
|
|
#define PGAUTHID_H
|
|
|
|
|
|
|
2018-12-25 16:39:58 +01:00
|
|
|
|
#include "PgServerObject.h"
|
2017-08-23 13:27:23 +02:00
|
|
|
|
#include <libpq-fe.h>
|
2017-02-18 12:05:48 +01:00
|
|
|
|
#include <QString>
|
|
|
|
|
|
#include <QDateTime>
|
|
|
|
|
|
|
2018-12-25 16:39:58 +01:00
|
|
|
|
/**
|
|
|
|
|
|
* @brief The PgAuthId class
|
|
|
|
|
|
*
|
|
|
|
|
|
* An AuthId is a database role
|
|
|
|
|
|
*/
|
|
|
|
|
|
class PgAuthId: public PgServerObject {
|
2017-02-18 12:05:48 +01:00
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
bool super;
|
|
|
|
|
|
bool inherit;
|
|
|
|
|
|
bool createRole;
|
|
|
|
|
|
bool createDB;
|
|
|
|
|
|
bool canlogin;
|
|
|
|
|
|
bool replication;
|
|
|
|
|
|
bool bypassRls;
|
|
|
|
|
|
int connLimit;
|
|
|
|
|
|
QDateTime validUntil;
|
|
|
|
|
|
|
2018-12-25 16:39:58 +01:00
|
|
|
|
using PgServerObject::PgServerObject;
|
|
|
|
|
|
QString typeName() const override;
|
2017-02-18 12:05:48 +01:00
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // PGAUTHID_H
|