Created IndexModel for displaying the indexes on a table. Constraints can now show the SQL to drop and create them.

The keyword list is now directly based of the official keyword list from postgresql.
This commit is contained in:
eelke 2018-01-06 21:22:22 +01:00
parent b436814eb5
commit 97d4e2a1a4
24 changed files with 754 additions and 228 deletions

View file

@ -59,9 +59,9 @@ QVariant TablesTableModel::headerData(int section, Qt::Orientation orientation,
case OptionsCol:
v = tr("Options");
break;
case AclCol:
v = tr("ACL");
break;
// case AclCol:
// v = tr("ACL");
// break;
}
}
}
@ -88,7 +88,7 @@ Oid TablesTableModel::getType(int column) const
case NameCol:
case NamespaceCol:
case OptionsCol:
case AclCol:
// case AclCol:
default:
oid = Pgsql::VARCHAROID;
}
@ -115,9 +115,9 @@ QVariant TablesTableModel::getData(const QModelIndex &index) const
case OptionsCol:
v = t.options;
break;
case AclCol:
v = t.acl;
break;
// case AclCol:
// v = t.acl;
// break;
}
return v;