Added convenience functions to PgLanguage for quickly testing for the standard languages.
This commit is contained in:
parent
471139ba4d
commit
fc58acb252
1 changed files with 6 additions and 0 deletions
|
|
@ -24,6 +24,12 @@ public:
|
|||
|
||||
QString createSql() const;
|
||||
QString dropSql() const;
|
||||
|
||||
bool isC() const { return objectName() == "c"; }
|
||||
bool isInternal() const { return objectName() == "internal"; }
|
||||
bool isPlpgsql() const { return objectName() == "plpgsql"; }
|
||||
bool isSql() const { return objectName() == "sql"; }
|
||||
|
||||
};
|
||||
|
||||
#endif // PGLANGUAGE_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue