Tab with list of sequences and create sql for selected sequence.
This commit is contained in:
parent
769307c821
commit
437736a023
19 changed files with 507 additions and 63 deletions
|
|
@ -30,6 +30,7 @@ class PgProcContainer;
|
|||
class PgCollationContainer;
|
||||
class PgInheritsContainer;
|
||||
class PgLanguageContainer;
|
||||
class PgSequenceContainer;
|
||||
|
||||
class PgDatabaseCatalog: public QObject, public std::enable_shared_from_this<PgDatabaseCatalog> {
|
||||
Q_OBJECT
|
||||
|
|
@ -63,6 +64,7 @@ public:
|
|||
std::shared_ptr<const PgCollationContainer> collations() const;
|
||||
std::shared_ptr<const PgInheritsContainer> inherits() const;
|
||||
std::shared_ptr<const PgLanguageContainer> languages() const;
|
||||
std::shared_ptr<const PgSequenceContainer> sequences() const;
|
||||
|
||||
enum RefreshFlag {
|
||||
Attributes = 1,
|
||||
|
|
@ -103,6 +105,7 @@ private:
|
|||
std::shared_ptr<PgCollationContainer> m_collations;
|
||||
std::shared_ptr<PgInheritsContainer> m_inherits;
|
||||
std::shared_ptr<PgLanguageContainer> m_languages;
|
||||
std::shared_ptr<PgSequenceContainer> m_sequences;
|
||||
|
||||
template <typename T>
|
||||
void load2(std::shared_ptr<T> &ptr, Pgsql::Connection &conn)
|
||||
|
|
@ -110,7 +113,7 @@ private:
|
|||
if (!ptr)
|
||||
ptr = std::make_shared<T>(*this);
|
||||
|
||||
load(conn, *ptr);
|
||||
ptr->loadAll(conn);
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue