pg_classes can be loaded now, used in TablesTableModel for overview of tables in database.

This commit is contained in:
eelke 2017-12-10 10:35:46 +01:00
parent 43e6042794
commit 6466062cc8
23 changed files with 524 additions and 173 deletions

View file

@ -70,6 +70,17 @@ Value::operator bool() const
return std::strcmp(m_val, "t") == 0;
}
Value::operator float() const
{
return std::stof(m_val);
}
Value::operator double() const
{
return std::stod(m_val);
}
bool Value::isString() const
{
return m_typ == CHAROID

View file

@ -25,6 +25,8 @@ namespace Pgsql {
operator Oid() const;
operator long long() const;
operator bool() const;
operator float() const;
operator double() const;
bool isString() const;