pgLab/pglablib/catalog/PgTriggerContainer.h

29 lines
504 B
C
Raw Permalink Normal View History

2018-09-23 10:43:32 +02:00
#ifndef PGTRIGGERCONTAINER_H
#define PGTRIGGERCONTAINER_H
#include "PgContainer.h"
#include "PgTrigger.h"
#include <vector>
2018-09-23 10:43:32 +02:00
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;
2018-09-23 10:43:32 +02:00
protected:
PgTrigger loadElem(const Pgsql::Row &row) override;
private:
};
#endif // PGTRIGGERCONTAINER_H