pgLab/pglablib/PgTriggerContainer.h
eelke 2a75e86102 Added listing of triggers for selected table (not completely finished).
Used slightly different approach. This tab is fully build in source code
using subclasses to adjust behaviour of widgets for reuse in the other tabs.
Uses custom proxy model for filtering triggers for correct table and supporting
out of the box sorting by QTableView.

SqlCodePreview: QPlainTextEditor which sql highlighter and in readonly mode but allows copy.
2018-10-07 19:40:06 +02:00

28 lines
504 B
C++

#ifndef PGTRIGGERCONTAINER_H
#define PGTRIGGERCONTAINER_H
#include "PgContainer.h"
#include "PgTrigger.h"
#include <vector>
namespace Pgsql {
class Result;
}
class PgTriggerContainer: public PgContainer<PgTrigger> {
public:
using PgContainer<PgTrigger>::PgContainer;
virtual std::string getLoadQuery() const override;
std::vector<PgTrigger> getTriggersForRelation(Oid cls) const;
protected:
PgTrigger loadElem(const Pgsql::Row &row) override;
private:
};
#endif // PGTRIGGERCONTAINER_H