Query, Explain and Cancel are going throught the asyncdbconnection now.
Todo: Notice processing and error reporting.
This commit is contained in:
parent
fce51a7b7e
commit
a36bf5f7f4
11 changed files with 335 additions and 217 deletions
|
|
@ -8,7 +8,7 @@ class QueryResultModel : public QAbstractTableModel
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QueryResultModel(QObject *parent, Pgsql::Result &&r);
|
||||
QueryResultModel(QObject *parent, std::shared_ptr<Pgsql::Result> r);
|
||||
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
|
|
@ -17,7 +17,7 @@ public:
|
|||
// virtual Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
|
||||
private:
|
||||
Pgsql::Result result;
|
||||
std::shared_ptr<Pgsql::Result> result;
|
||||
};
|
||||
|
||||
#endif // QUERYRESULTMODEL_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue