The create table statement now lists the inherited tables and inherited columns are commented out.
This commit is contained in:
parent
498233d58c
commit
6c76c70a97
11 changed files with 118 additions and 6 deletions
22
pglablib/PgInheritsContainer.h
Normal file
22
pglablib/PgInheritsContainer.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue