Added dependants tab to table page

Retrieves all foreignkeys pointing to the current table
and shows the tables they are foreignkeys of.
This commit is contained in:
eelke 2019-11-17 10:27:11 +01:00
parent b90df1cd77
commit 8dd13d103e
10 changed files with 268 additions and 4 deletions

View file

@ -17,6 +17,7 @@ public:
std::vector<PgConstraint> getConstraintsForRelation(Oid relid) const;
std::optional<PgConstraint> getPrimaryForRelation(Oid relid) const;
std::vector<PgConstraint> getReferencedForRelation(Oid relid) const;
protected:
virtual PgConstraint loadElem(const Pgsql::Row &row) override;
};