2017-12-17 11:28:20 +01:00
|
|
|
|
#ifndef PGINDEXCONTAINER_H
|
|
|
|
|
|
#define PGINDEXCONTAINER_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "PgContainer.h"
|
|
|
|
|
|
#include "PgIndex.h"
|
|
|
|
|
|
#include "Pgsql_declare.h"
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
|
|
class PgIndexContainer : public PgContainer<PgIndex> {
|
|
|
|
|
|
public:
|
|
|
|
|
|
using PgContainer<PgIndex>::PgContainer;
|
|
|
|
|
|
|
|
|
|
|
|
virtual std::string getLoadQuery() const override;
|
2017-12-17 19:34:28 +01:00
|
|
|
|
std::vector<PgIndex> getIndexesForTable(Oid table_oid) const;
|
2017-12-17 11:28:20 +01:00
|
|
|
|
protected:
|
|
|
|
|
|
virtual PgIndex loadElem(const Pgsql::Row &row) override;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // PGINDEXCONTAINER_H
|