Created classes for loading constraints.
This commit is contained in:
parent
8a27a1166f
commit
1727b0d645
5 changed files with 223 additions and 2 deletions
20
pglab/PgConstraintContainer.h
Normal file
20
pglab/PgConstraintContainer.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef PGCONSTRAINTCONTAINER_H
|
||||
#define PGCONSTRAINTCONTAINER_H
|
||||
|
||||
#include "PgContainer.h"
|
||||
#include "PgConstraint.h"
|
||||
#include "Pgsql_declare.h"
|
||||
#include <vector>
|
||||
|
||||
class PgConstraintContainer : public PgContainer<PgConstraint> {
|
||||
public:
|
||||
using PgContainer<PgConstraint>::PgContainer;
|
||||
|
||||
virtual std::string getLoadQuery() const override;
|
||||
//std::vector<PgConstraint> getIndexesForTable(Oid table_oid) const;
|
||||
protected:
|
||||
virtual PgConstraint loadElem(const Pgsql::Row &row) override;
|
||||
};
|
||||
|
||||
|
||||
#endif // PGCONSTRAINTCONTAINER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue