23 lines
539 B
C
23 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
|