pgLab/pglablib/catalog/PgTriggerContainer.h
eelke f0c1035378 Reorganize files in pglablib
The enitities and containers of the catalog now go into catalog subfolder
Models go into model
2018-12-16 11:31:33 +01: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