Add view 'element_nomenclature_view' to projectDataBase

Add a view for the nomenclature to reduce the size of the query and make
it more understandable
This commit is contained in:
Claveau Joshua
2020-04-25 15:52:06 +02:00
parent 44bf0a5ce4
commit a8a9ddc3d6
4 changed files with 73 additions and 44 deletions

View File

@@ -49,13 +49,14 @@ class projectDataBase : public QObject
void updateDB();
QETProject *project() const;
static QStringList headersFromElementsInfoQuery(const QString &query);
static QStringList headersFromElementNomenclatureViewQuery(const QString &query);
signals:
void dataBaseUpdated();
private:
bool createDataBase(const QString &connection_name= QString(), const QString &name = QString());
void createElementNomenclatureView();
void populateDiagramTable();
void populateElementTable();
void populateElementInfoTable();