The create table statement now lists the inherited tables and inherited columns are commented out.

This commit is contained in:
eelke 2018-12-03 21:03:49 +01:00
parent 498233d58c
commit 6c76c70a97
11 changed files with 118 additions and 6 deletions

View file

@ -0,0 +1,22 @@
#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