Rework of catalog objects. Several of them are now inheriting from common
base classes that implement common functionality.
This commit is contained in:
parent
840af1e0a9
commit
73c4cf4790
45 changed files with 340 additions and 265 deletions
|
|
@ -54,7 +54,7 @@ class CrudModel: public QAbstractTableModel {
|
|||
Q_OBJECT
|
||||
public:
|
||||
explicit CrudModel(ASyncWindow *async_win);
|
||||
~CrudModel();
|
||||
~CrudModel() override;
|
||||
|
||||
void setConfig(std::shared_ptr<OpenDatabase> db, const PgClass &table);
|
||||
|
||||
|
|
@ -149,7 +149,7 @@ private:
|
|||
*/
|
||||
class PendingRow {
|
||||
public:
|
||||
using ValueMap = std::map<int16_t, Value>;
|
||||
using ValueMap = std::map<int, Value>;
|
||||
|
||||
explicit PendingRow(int row)
|
||||
: m_row(row)
|
||||
|
|
@ -232,7 +232,7 @@ private:
|
|||
|
||||
ASyncWindow * m_asyncWindow;
|
||||
std::shared_ptr<OpenDatabase> m_database;
|
||||
PgClass m_table;
|
||||
std::optional<PgClass> m_table;
|
||||
std::optional<PgConstraint> m_primaryKey;
|
||||
ASyncDBConnection m_dbConn;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue