Added convenience functions to PgLanguage for quickly testing for the standard languages.

This commit is contained in:
eelke 2018-12-23 19:43:50 +01:00
parent 471139ba4d
commit fc58acb252

View file

@ -24,6 +24,12 @@ public:
QString createSql() const; QString createSql() const;
QString dropSql() 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 #endif // PGLANGUAGE_H