Generic GRANT/REVOKE generation from ACL's complete.

Moved the owned concept to PgServerObject as it is needed for the generic
acl functionality that is also in PgServerObject.
This commit is contained in:
eelke 2018-12-25 13:17:04 +01:00
parent cc0b28e8e0
commit c2c01cf431
23 changed files with 358 additions and 312 deletions

View file

@ -2,7 +2,6 @@
#define PGPROC_H
#include "PgNamespaceObject.h"
#include "PgOwnedObject.h"
#include <QString>
#include <libpq-fe.h>
#include "Pgsql_Value.h"
@ -52,7 +51,7 @@ void operator<<(ParallelMode &s, const Pgsql::Value &v);
QString parallelModeToSql(ParallelMode pm, bool explicit_unsafe = false);
class PgProc: public PgNamespaceObject, public PgOwnedObject {
class PgProc: public PgNamespaceObject {
public:
using PgNamespaceObject::PgNamespaceObject;
@ -98,6 +97,7 @@ public:
bool isWindow() const { return kind == ProcKind::Window; }
QString typeName() const override;
QString aclAllPattern() const override;
// bool isTrigger() const
// {
// return typname == wxT("\"trigger\"") || typname == wxT("trigger") || typname == wxT("event_trigger") || typname == wxT("\"event_trigger\""))