Overview of triggers extended with function name and arguments.

Did a lot of refactoring on the catalog to keep things clean.
This commit is contained in:
eelke 2018-11-18 19:30:45 +01:00
parent 35813ae926
commit fcb191f2cc
44 changed files with 797 additions and 404 deletions

View file

@ -1,19 +1,25 @@
#ifndef PGOBJECT_H
#define PGOBJECT_H
#include <memory>
#include <QString>
class PgDatabaseCatalog;
class PgObject
{
class PgObject {
public:
PgObject();
explicit PgObject(std::weak_ptr<PgDatabaseCatalog> cat)
: catalog(cat)
{}
explicit PgObject(PgDatabaseCatalog& cat);
virtual ~PgObject();
virtual QString objectName() const = 0;
/// Default implementation uses objectName and add quotes when needed.
virtual QString quotedObjectName() const;
protected:
std::weak_ptr<PgDatabaseCatalog> catalog;
const PgDatabaseCatalog& catalog() const;
private:
PgDatabaseCatalog* m_catalog;
};
#endif // PGOBJECT_H