Display comments in the list of databases

This commit is contained in:
eelke 2021-03-11 06:59:31 +01:00
parent 2724586f4e
commit f21a59e030
4 changed files with 16 additions and 6 deletions

View file

@ -52,6 +52,9 @@ QVariant DatabasesTableModel::headerData(int section, Qt::Orientation orientatio
case TablespaceCol:
v = tr("Tablespace");
break;
case CommentCol:
v = tr("Comment");
break;
case SizeCol:
v = tr("Size");
break;
@ -102,6 +105,7 @@ Oid DatabasesTableModel::getType(int column) const
case DbaCol:
case NameCol:
case TablespaceCol:
case CommentCol:
oid = varchar_oid;
break;
default:
@ -146,6 +150,9 @@ QVariant DatabasesTableModel::getData(const QModelIndex &index) const
// todo lookup tablespace name
v = getTablespaceDisplayString(*m_catalog, db.tablespace);
break;
case CommentCol:
v = db.description;
break;
case SizeCol:
v = db.sizeBytes;
break;