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

@ -3,6 +3,7 @@
#include <QWidget>
#include <memory>
#include <QItemSelection>
namespace Ui {
class TablesPage;
@ -13,6 +14,7 @@ class ColumnTableModel;
class ConstraintModel;
class PgDatabaseCatalog;
class NamespaceFilterWidget;
class IndexModel;
class TablesPage : public QWidget
{
@ -29,11 +31,14 @@ private:
TablesTableModel* m_tablesModel = nullptr;
ColumnTableModel* m_columnsModel = nullptr;
ConstraintModel* m_constraintModel = nullptr;
IndexModel* m_indexModel = nullptr;
NamespaceFilterWidget* m_namespaceFilterWidget;
private slots:
void on_tableListTable_currentRowChanged(const QModelIndex &current, const QModelIndex &previous);
void on_constraintsTable_currentRowChanged(const QModelIndex &current, const QModelIndex &previous);
void on_constraintsTable_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
};
#endif // TABLESPAGE_H