Reorganize files in pglablib
The enitities and containers of the catalog now go into catalog subfolder Models go into model
This commit is contained in:
parent
56cbeea183
commit
f0c1035378
121 changed files with 226 additions and 183 deletions
25
pglablib/catalog/PgConstraintContainer.h
Normal file
25
pglablib/catalog/PgConstraintContainer.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef PGCONSTRAINTCONTAINER_H
|
||||
#define PGCONSTRAINTCONTAINER_H
|
||||
|
||||
#include "PgContainer.h"
|
||||
#include "PgConstraint.h"
|
||||
#include "Pgsql_declare.h"
|
||||
#include <vector>
|
||||
#include <optional>
|
||||
|
||||
class PgConstraintContainer : public PgContainer<PgConstraint> {
|
||||
public:
|
||||
using PgContainer<PgConstraint>::PgContainer;
|
||||
|
||||
virtual std::string getLoadQuery() const override;
|
||||
//std::vector<PgConstraint> getIndexesForTable(Oid table_oid) const;
|
||||
std::vector<PgConstraint> getFKeyForTableColumn(Oid relid, int16_t attnum) const;
|
||||
|
||||
std::vector<PgConstraint> getConstraintsForRelation(Oid relid) const;
|
||||
std::optional<PgConstraint> getPrimaryForRelation(Oid relid) const;
|
||||
protected:
|
||||
virtual PgConstraint loadElem(const Pgsql::Row &row) override;
|
||||
};
|
||||
|
||||
|
||||
#endif // PGCONSTRAINTCONTAINER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue