The table inheritance works mostly

This commit is contained in:
Eelke Klein 2023-01-24 17:47:52 +00:00
parent ccd88d0578
commit 2ff9577d41
22 changed files with 473 additions and 145 deletions

View file

@ -0,0 +1,25 @@
#pragma once
#include "TableSize.h"
#include "catalog/PgClass.h"
class TableNode;
using t_Tables = std::vector<std::shared_ptr<TableNode>>;
class TableNode {
public:
PgClass _class;
TableSize sizes;
int myIndex;
std::weak_ptr<TableNode> parent; // hope we do not need it (must be weak to prevent circular reference)
t_Tables children;
TableNode();
TableNode(const PgClass &cls);
const TableNode* getChildPtr(int index) const;
};