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:
parent
35813ae926
commit
fcb191f2cc
44 changed files with 797 additions and 404 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue