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
|
|
@ -1,32 +0,0 @@
|
|||
#ifndef PGOBJECT_H
|
||||
#define PGOBJECT_H
|
||||
|
||||
#include <libpq-fe.h>
|
||||
#include <QString>
|
||||
|
||||
class PgDatabaseCatalog;
|
||||
|
||||
class PgObject {
|
||||
public:
|
||||
explicit PgObject(PgDatabaseCatalog& cat, Oid oid, const QString &name);
|
||||
virtual ~PgObject();
|
||||
|
||||
Oid oid() const;
|
||||
const QString& objectName() const;
|
||||
/// Default implementation uses objectName and add quotes when needed.
|
||||
virtual QString quotedObjectName() const;
|
||||
|
||||
bool operator==(Oid _oid) const { return m_oid == _oid; }
|
||||
bool operator==(const QString &n) const { return m_name == n; }
|
||||
bool operator<(Oid _oid) const { return m_oid < _oid; }
|
||||
bool operator<(const PgObject &rhs) const { return m_oid < rhs.m_oid; }
|
||||
protected:
|
||||
const PgDatabaseCatalog& catalog() const;
|
||||
|
||||
private:
|
||||
PgDatabaseCatalog* m_catalog;
|
||||
Oid m_oid;
|
||||
QString m_name;
|
||||
};
|
||||
|
||||
#endif // PGOBJECT_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue