Show SQL for database
Also improvements to the SQL for tables and views.
This commit is contained in:
parent
b5a706a2a2
commit
3158a4364b
12 changed files with 172 additions and 58 deletions
|
|
@ -8,7 +8,6 @@
|
|||
class PgDatabase: public PgServerObject {
|
||||
public:
|
||||
|
||||
Oid dba; // owner?
|
||||
int encoding;
|
||||
QString encodingString;
|
||||
QString collate;
|
||||
|
|
@ -17,13 +16,15 @@ public:
|
|||
bool allowConn;
|
||||
int connLimit;
|
||||
Oid tablespace;
|
||||
QString description;
|
||||
|
||||
using PgServerObject::PgServerObject;
|
||||
|
||||
bool isValid() const { return oid() != InvalidOid; }
|
||||
|
||||
QString typeName() const override;
|
||||
virtual QString aclAllPattern() const override;
|
||||
virtual QString dropSql() const override;
|
||||
virtual QString createSql() const override;
|
||||
};
|
||||
|
||||
#endif // PGDATABASE_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue