pgLab/pglablib/catalog/PgInheritsContainer.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

22 lines
539 B
C++

#ifndef PGINHERITSCONTAINER_H
#define PGINHERITSCONTAINER_H
#include "PgContainer.h"
#include "PgInherits.h"
#include "Pgsql_declare.h"
class PgInheritsContainer : public PgContainer<PgInherits, PgInherits::Key> {
public:
using PgContainer<PgInherits, PgInherits::Key>::PgContainer;
virtual std::string getLoadQuery() const override;
/// Returns the parents in the correct order
std::vector<Oid> getParentsOf(Oid oid) const;
protected:
PgInherits loadElem(const Pgsql::Row &row) override;
};
#endif // PGINHERITSCONTAINER_H