Index DROP and CREATE statements are now shown.

For now the create is still single line. Either complex query is required
to get details for custom generator or we need to format after the fact.

Close #12
This commit is contained in:
eelke 2018-08-05 11:27:05 +02:00
parent 78a6666839
commit f1020ac56e
3 changed files with 28 additions and 12 deletions

View file

@ -146,7 +146,7 @@ void TablesPage::indexesTable_selectionChanged(const QItemSelection &/*selected*
QString creates;
for (auto rij : rijen) {
const PgIndex index = m_indexModel->getIndex(rij);
//drops += getDropIndexDefinition(*m_catalog, index) % "\n";
drops += getDropIndexDefinition(*m_catalog, index) % "\n";
creates += getIndexDefinition(*m_catalog, index) % "\n";
}
ui->indexSqlEdit->setPlainText(drops % "\n" % creates);