The tablespage now has a namespace filter allowing it to be used for

a pg_catalog and information_schema tab.
This commit is contained in:
eelke 2018-12-29 10:56:24 +01:00
parent d129876d06
commit a0579538df
5 changed files with 60 additions and 9 deletions

View file

@ -109,6 +109,16 @@ void DatabaseWindow::catalogLoaded()
tt->setCatalog(m_database->catalog());
ui->tabWidget->addTab(tt, "Tables");
auto pg_cat_tables = new TablesPage(this);
pg_cat_tables->setNamespaceFilter(TablesTableModel::PgCatalog);
pg_cat_tables->setCatalog(m_database->catalog());
ui->tabWidget->addTab(pg_cat_tables, "pg_catalog");
auto info_schema_tables = new TablesPage(this);
info_schema_tables->setNamespaceFilter(TablesTableModel::InformationSchema);
info_schema_tables->setCatalog(m_database->catalog());
ui->tabWidget->addTab(info_schema_tables, "information_schema");
auto functions_page = new FunctionsPage(this);
functions_page->setCatalog(m_database->catalog());
ui->tabWidget->addTab(functions_page, "Functions");