diff --git a/pglablib/catalog/PgLanguage.h b/pglablib/catalog/PgLanguage.h index fe4a1a4..3178bc8 100644 --- a/pglablib/catalog/PgLanguage.h +++ b/pglablib/catalog/PgLanguage.h @@ -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